diff --git a/.github/workflows/Build Latest.yml b/.github/workflows/Build Latest.yml index e167bc2c..b2dd5165 100644 --- a/.github/workflows/Build Latest.yml +++ b/.github/workflows/Build Latest.yml @@ -16,6 +16,11 @@ on: # Input has to be provided for the workflow to run required: true + version: + description: "Version" + default: "145_MSIX_build_3" + required: true + jobs: build: @@ -30,24 +35,16 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pygame - pip install pywin32 - pip install winshell - pip install Pillow - pip install imtools - pip install infi.systray - pip install keyboard - pip install pyinstaller==3.5 - - name: Building GWSL_service... - run: | - echo "pyinstaller" - #python pyinstaller..... - - name: Building GWSL... - run: | - echo "pyinstaller" - - name: Merging Results... - run: | - echo "pyinstaller" - - name: Copying Assets... - run: | - echo "pyinstaller" + pip install -r requirements.txt + + - name: Building + run: python build.py ${{ github.event.inputs.version }} + + - name: Zip build artifacts + run: powershell Compress-Archive -Path "dist/GWSL_${{ github.event.inputs.version }}" -DestinationPath "dist/GWSL_${{ github.event.inputs.version }}.zip" + + - name: Upload build artifacts + uses: actions/upload-artifact@v3 + with: + name: gwsl-build + path: dist/GWSL_${{ github.event.inputs.version }}.zip \ No newline at end of file diff --git a/build.py b/build.py index 69a03908..1ddbe49b 100644 --- a/build.py +++ b/build.py @@ -1,9 +1,10 @@ +import sys import os import PyInstaller.__main__ import shutil from distutils.dir_util import copy_tree -version = "145 MSIX build 3" +version = sys.argv[1] print("\nBuilding Dashboard...") @@ -13,7 +14,7 @@ '-w', '-y', '-n=GWSL', - #'--hidden-import=pkg_resources.py2_warn' + '--hidden-import=pkg_resources.py2_warn' ]) @@ -26,7 +27,7 @@ '-n=GWSL_service', '--hidden-import=pkg_resources', '--hidden-import=infi.systray', - #'--hidden-import=pkg_resources.py2_warn' + '--hidden-import=pkg_resources.py2_warn' ]) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..cd5e4d1a --- /dev/null +++ b/requirements.txt @@ -0,0 +1,9 @@ +pygame #Verion 2. The latest. +pywin32 +winshell +Pillow +imtools +keyboard +pyinstaller==3.5 +pyxdg +psutil \ No newline at end of file