mirror of
https://github.com/NaiboWang/EasySpider.git
synced 2025-04-21 13:55:17 +08:00
Change windows to Windows
This commit is contained in:
parent
9ed61c4f50
commit
a2bd496e8e
4
.temp_to_pub/.gitignore
vendored
4
.temp_to_pub/.gitignore
vendored
@ -1,10 +1,10 @@
|
|||||||
EasySpider_MacOS/easyspider_executestage
|
EasySpider_MacOS/easyspider_executestage
|
||||||
EasySpider_MacOS/easyspider_executestage_full
|
EasySpider_MacOS/easyspider_executestage_full
|
||||||
EasySpider_Linux64_x64/user_data
|
EasySpider_Linux64_x64/user_data
|
||||||
EasySpider_windows_x32/user_data
|
EasySpider_Windows_x32/user_data
|
||||||
EasySpider
|
EasySpider
|
||||||
EasySpider.app/
|
EasySpider.app/
|
||||||
EasySpider_windows_x64/user_data
|
EasySpider_Windows_x64/user_data
|
||||||
*.tmp
|
*.tmp
|
||||||
*.tar.gz
|
*.tar.gz
|
||||||
*.7z*
|
*.7z*
|
||||||
|
@ -69,44 +69,44 @@ easyspider_version = "0.6.2"
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
||||||
if sys.platform == "win32" and platform.architecture()[0] == "64bit":
|
if sys.platform == "win32" and platform.architecture()[0] == "64bit":
|
||||||
file_name = f"EasySpider_{easyspider_version}_windows_x64.7z"
|
file_name = f"EasySpider_{easyspider_version}_Windows_x64.7z"
|
||||||
if os.path.exists("./EasySpider_windows_x64/user_data"):
|
if os.path.exists("./EasySpider_Windows_x64/user_data"):
|
||||||
shutil.rmtree("./EasySpider_windows_x64/user_data")
|
shutil.rmtree("./EasySpider_Windows_x64/user_data")
|
||||||
if os.path.exists("./EasySpider_windows_x64/Data"):
|
if os.path.exists("./EasySpider_Windows_x64/Data"):
|
||||||
shutil.rmtree("./EasySpider_windows_x64/Data")
|
shutil.rmtree("./EasySpider_Windows_x64/Data")
|
||||||
if os.path.exists("./EasySpider_windows_x64/execution_instances"):
|
if os.path.exists("./EasySpider_Windows_x64/execution_instances"):
|
||||||
shutil.rmtree("./EasySpider_windows_x64/execution_instances")
|
shutil.rmtree("./EasySpider_Windows_x64/execution_instances")
|
||||||
if os.path.exists("./EasySpider_windows_x64/config.json"):
|
if os.path.exists("./EasySpider_Windows_x64/config.json"):
|
||||||
os.remove("./EasySpider_windows_x64/config.json")
|
os.remove("./EasySpider_Windows_x64/config.json")
|
||||||
if os.path.exists("./EasySpider_windows_x64/mysql_config.json"):
|
if os.path.exists("./EasySpider_Windows_x64/mysql_config.json"):
|
||||||
os.remove("./EasySpider_windows_x64/mysql_config.json")
|
os.remove("./EasySpider_Windows_x64/mysql_config.json")
|
||||||
if os.path.exists("./EasySpider_windows_x64/TempUserDataFolder"):
|
if os.path.exists("./EasySpider_Windows_x64/TempUserDataFolder"):
|
||||||
shutil.rmtree("./EasySpider_windows_x64/TempUserDataFolder")
|
shutil.rmtree("./EasySpider_Windows_x64/TempUserDataFolder")
|
||||||
os.mkdir("./EasySpider_windows_x64/Data")
|
os.mkdir("./EasySpider_Windows_x64/Data")
|
||||||
os.mkdir("./EasySpider_windows_x64/execution_instances")
|
os.mkdir("./EasySpider_Windows_x64/execution_instances")
|
||||||
# compress_folder_to_7z_split("./EasySpider_windows_x64", file_name)
|
# compress_folder_to_7z_split("./EasySpider_Windows_x64", file_name)
|
||||||
# print(f"Compress {file_name} Split successfully!")
|
# print(f"Compress {file_name} Split successfully!")
|
||||||
compress_folder_to_7z("./EasySpider_windows_x64", file_name)
|
compress_folder_to_7z("./EasySpider_Windows_x64", file_name)
|
||||||
print(f"Compress {file_name} successfully!")
|
print(f"Compress {file_name} successfully!")
|
||||||
elif sys.platform == "win32" and platform.architecture()[0] == "32bit":
|
elif sys.platform == "win32" and platform.architecture()[0] == "32bit":
|
||||||
file_name = f"EasySpider_{easyspider_version}_windows_x32.7z"
|
file_name = f"EasySpider_{easyspider_version}_Windows_x32.7z"
|
||||||
if os.path.exists("./EasySpider_windows_x32/user_data"):
|
if os.path.exists("./EasySpider_Windows_x32/user_data"):
|
||||||
shutil.rmtree("./EasySpider_windows_x32/user_data")
|
shutil.rmtree("./EasySpider_Windows_x32/user_data")
|
||||||
if os.path.exists("./EasySpider_windows_x32/Data"):
|
if os.path.exists("./EasySpider_Windows_x32/Data"):
|
||||||
shutil.rmtree("./EasySpider_windows_x32/Data")
|
shutil.rmtree("./EasySpider_Windows_x32/Data")
|
||||||
if os.path.exists("./EasySpider_windows_x32/execution_instances"):
|
if os.path.exists("./EasySpider_Windows_x32/execution_instances"):
|
||||||
shutil.rmtree("./EasySpider_windows_x32/execution_instances")
|
shutil.rmtree("./EasySpider_Windows_x32/execution_instances")
|
||||||
if os.path.exists("./EasySpider_windows_x32/config.json"):
|
if os.path.exists("./EasySpider_Windows_x32/config.json"):
|
||||||
os.remove("./EasySpider_windows_x32/config.json")
|
os.remove("./EasySpider_Windows_x32/config.json")
|
||||||
if os.path.exists("./EasySpider_windows_x32/mysql_config.json"):
|
if os.path.exists("./EasySpider_Windows_x32/mysql_config.json"):
|
||||||
os.remove("./EasySpider_windows_x32/mysql_config.json")
|
os.remove("./EasySpider_Windows_x32/mysql_config.json")
|
||||||
if os.path.exists("./EasySpider_windows_x32/TempUserDataFolder"):
|
if os.path.exists("./EasySpider_Windows_x32/TempUserDataFolder"):
|
||||||
shutil.rmtree("./EasySpider_windows_x32/TempUserDataFolder")
|
shutil.rmtree("./EasySpider_Windows_x32/TempUserDataFolder")
|
||||||
os.mkdir("./EasySpider_windows_x32/Data")
|
os.mkdir("./EasySpider_Windows_x32/Data")
|
||||||
os.mkdir("./EasySpider_windows_x32/execution_instances")
|
os.mkdir("./EasySpider_Windows_x32/execution_instances")
|
||||||
# compress_folder_to_7z_split("./EasySpider_windows_x32", file_name)
|
# compress_folder_to_7z_split("./EasySpider_Windows_x32", file_name)
|
||||||
# print(f"Compress {file_name} Split successfully!")
|
# print(f"Compress {file_name} Split successfully!")
|
||||||
compress_folder_to_7z("./EasySpider_windows_x32", file_name)
|
compress_folder_to_7z("./EasySpider_Windows_x32", file_name)
|
||||||
print(f"Compress {file_name} successfully!")
|
print(f"Compress {file_name} successfully!")
|
||||||
elif sys.platform == "linux" and platform.architecture()[0] == "64bit":
|
elif sys.platform == "linux" and platform.architecture()[0] == "64bit":
|
||||||
file_name = f"EasySpider_{easyspider_version}_Linux_x64.tar.xz"
|
file_name = f"EasySpider_{easyspider_version}_Linux_x64.tar.xz"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user