Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update(build) : github action and build file -> now version name wil… #188

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 18 additions & 21 deletions .github/workflows/Build Latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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
7 changes: 4 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
@@ -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...")
Expand All @@ -13,7 +14,7 @@
'-w',
'-y',
'-n=GWSL',
#'--hidden-import=pkg_resources.py2_warn'
'--hidden-import=pkg_resources.py2_warn'
])


Expand All @@ -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'
])


Expand Down
9 changes: 9 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
pygame #Verion 2. The latest.
pywin32
winshell
Pillow
imtools
keyboard
pyinstaller==3.5
pyxdg
psutil