This commit is contained in:
BarsTiger
2021-04-23 13:06:38 +03:00
parent 1fc46a4779
commit f98a6be342
25 changed files with 855 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

View File

@@ -0,0 +1,5 @@
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,11
[InternetShortcut]
IDList=
URL=https://kotikot.netlify.app/

Binary file not shown.

After

Width:  |  Height:  |  Size: 367 KiB

View File

@@ -0,0 +1 @@
pip install easygui

View File

@@ -0,0 +1,7 @@
[.ShellClassInfo]
IconResource=D:\RAZNOE\!<21><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\KOTIKOT apps\meowarch\ReadyForDownloading\MeowArch\Meowarch.ico,0
[ViewState]
Mode=
Vid=
FolderType=Generic
Logo=D:\RAZNOE\!<21><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\KOTIKOT apps\meowarch\ReadyForDownloading\MeowArch\Meowarch.png

View File

@@ -0,0 +1,39 @@
import os
import easygui
import zipfile
from os.path import basename
import shutil
slash = '\\'
ziporunzip = easygui.buttonbox("What do you want to do?", "Meowarch", ("Archive file", "Unarchive file", "Cancel"))
if ziporunzip == "Cancel":
exit()
if ziporunzip == "Archive file":
thisFile = easygui.fileopenbox(filetypes=["*"], multiple=True)
nameofzip = easygui.enterbox("Enter name of archive:")
# filenameWithoutTochka = os.path.splitext(thisFile)[0]
zipfile = zipfile.ZipFile(nameofzip + '.zip', 'w', zipfile.ZIP_DEFLATED)
for i in range(len(thisFile)):
zipfile.write(thisFile[i], basename(thisFile[i]))
while easygui.buttonbox("Do you want to add more files?", "Meowarch", ("Yes", "No, I added all needed files")) == "Yes":
thisFile = easygui.fileopenbox(filetypes=["*"], multiple=True)
for i in range(len(thisFile)):
zipfile.write(thisFile[i], basename(thisFile[i]))
zipfile.close()
os.rename(nameofzip + ".zip", nameofzip + ".meowarch")
wheretosave = easygui.diropenbox("Where to save archive?")
shutil.move(nameofzip + ".meowarch", wheretosave + slash + nameofzip + ".meowarch")
if ziporunzip == "Unarchive file":
zipFile = easygui.fileopenbox(filetypes=["*"])
wheretoextract = easygui.diropenbox("Where to extract files?")
filenameWithoutTochka = os.path.splitext(zipFile)[0]
os.rename(zipFile, filenameWithoutTochka + ".zip")
with zipfile.ZipFile(filenameWithoutTochka + ".zip", 'r') as zipObj:
zipObj.extractall(wheretoextract)
os.rename(filenameWithoutTochka + ".zip", filenameWithoutTochka + ".meowarch")

View File

@@ -0,0 +1,8 @@
Before using, read install.txt and install all you need
Launch meowarch.py from MeowArch folder, but don't copy .py file from this folder, it may crash (I think not, but what if?) meowarch, and it will not work
untill you copy file back.
Don't copy any files to MeowArch folder
If you want to test program, use files in folder "For testing MeowArch", and than use meowarch for your needs

View File

@@ -0,0 +1,13 @@
Henlo
I am guide for installation
Firstly, install Python. If you want, download latest version from official website. But I added installation file of Python 3.9
If it won't work - download from https://www.python.org/
!IMPORTANT!
Check te box "install pip"
After installing python and pip, run installEasygui.bat or in CMD print
>>> pip install easygui
(without >>>)
Cool, your copy of MeowArch works!

View File

@@ -0,0 +1,39 @@
import os
import easygui
import zipfile
from os.path import basename
import shutil
slash = '\\'
ziporunzip = easygui.buttonbox("What do you want to do?", "Meowarch", ("Archive file", "Unarchive file", "Cancel"))
if ziporunzip == "Cancel":
exit()
if ziporunzip == "Archive file":
thisFile = easygui.fileopenbox(filetypes=["*"], multiple=True)
nameofzip = easygui.enterbox("Enter name of archive:")
# filenameWithoutTochka = os.path.splitext(thisFile)[0]
zipfile = zipfile.ZipFile(nameofzip + '.zip', 'w', zipfile.ZIP_DEFLATED)
for i in range(len(thisFile)):
zipfile.write(thisFile[i], basename(thisFile[i]))
while easygui.buttonbox("Do you want to add more files?", "Meowarch", ("Yes", "No, I added all needed files")) == "Yes":
thisFile = easygui.fileopenbox(filetypes=["*"], multiple=True)
for i in range(len(thisFile)):
zipfile.write(thisFile[i], basename(thisFile[i]))
zipfile.close()
os.rename(nameofzip + ".zip", nameofzip + ".meowarch")
wheretosave = easygui.diropenbox("Where to save archive?")
shutil.move(nameofzip + ".meowarch", wheretosave + slash + nameofzip + ".meowarch")
if ziporunzip == "Unarchive file":
zipFile = easygui.fileopenbox(filetypes=["*"])
wheretoextract = easygui.diropenbox("Where to extract files?")
filenameWithoutTochka = os.path.splitext(zipFile)[0]
os.rename(zipFile, filenameWithoutTochka + ".zip")
with zipfile.ZipFile(filenameWithoutTochka + ".zip", 'r') as zipObj:
zipObj.extractall(wheretoextract)
os.rename(filenameWithoutTochka + ".zip", filenameWithoutTochka + ".meowarch")