Fix a bug in the *.spec files and also apply the following major changes:
- Add support for adding the base folder to PATH. - Only display one pop up window at a time in order to avoid confusion. - Add automatic updates feature: - Windows and Linux versions will be shipped with an updater program used to update both Artemis and the updater itself. - MacOs versions will not have the updater. Instead the user will be asked to download the new software version (if present) via browser.
This commit is contained in:
30
spec_files/Windows/build.bat
Normal file
30
spec_files/Windows/build.bat
Normal file
@@ -0,0 +1,30 @@
|
||||
ECHO OFF
|
||||
ECHO Building Artemis executable...
|
||||
RMDIR /s /q output
|
||||
MKDIR output
|
||||
pyinstaller artemis.spec
|
||||
ECHO Remove directories
|
||||
MOVE dist\Artemis.exe .\output\Artemis.exe
|
||||
RMDIR /s /q dist
|
||||
RMDIR /s /q build
|
||||
ECHO *************
|
||||
ECHO *************
|
||||
ECHO Building updater...
|
||||
pyinstaller updater.spec
|
||||
ECHO Remove directories
|
||||
MOVE dist\_ArtemisUpdater.exe .\output\_ArtemisUpdater.exe
|
||||
RMDIR /s /q dist
|
||||
RMDIR /s /q build
|
||||
CD output
|
||||
MKDIR Artemis
|
||||
XCOPY /y Artemis.exe Artemis\
|
||||
XCOPY /e /k /y ..\..\..\src\themes Artemis\themes\ /EXCLUDE:..\excluded_files.txt
|
||||
XCOPY /y _ArtemisUpdater.exe Artemis\
|
||||
ECHO "Compress files themes+Artemis.exe -> Artemis.zip"
|
||||
"C:\Program Files\7-Zip\7z.exe" a -r Artemis_win.zip Artemis.exe Artemis\themes
|
||||
"C:\Program Files\7-Zip\7z.exe" a _ArtemisUpdater_win.zip _ArtemisUpdater.exe
|
||||
ECHO "Compress all files for website download"
|
||||
"C:\Program Files\7-Zip\7z.exe" a ArtemisWebsite_win.zip Artemis\
|
||||
python ..\..\__get_hash_code.py Artemis_win.zip _ArtemisUpdater_win.zip ArtemisWebsite_win.zip
|
||||
CD ..
|
||||
ECHO Done.
|
||||
Reference in New Issue
Block a user