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

Adapt-windows-build #587

Merged
merged 12 commits into from
Apr 18, 2024
Merged
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
2 changes: 1 addition & 1 deletion .github/scripts/get_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
version = version.strip('"')

with open(env_file, "a") as myfile:
myfile.write("APP_VERSION=" + version)
myfile.write("PYAPP_PROJECT_VERSION=" + version)
exit(0)
25 changes: 16 additions & 9 deletions .github/workflows/dist-build-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,25 @@ jobs:
python ..\.github\scripts\get_version.py
echo "${{ env.APP_VERSION }}"
- name: Setup PyOxidizer and build
env:
PYAPP_FULL_ISOLATION: 1
PYAPP_PROJECT_NAME: gefyra
PYAPP_EXEC_SPEC: gefyra.cli.main:main
PYAPP_PIP_EXTRA_ARGS: click alive-progress tabulate cli-tracker
PYAPP_DISTRIBUTION_EMBED: 1
working-directory: client/
run: |
Invoke-WebRequest 'https://github.com/indygreg/PyOxidizer/releases/download/pyoxidizer%2F0.20.0/PyOxidizer-0.20.0-exe-x86_64-pc-windows.zip' -OutFile .\PyOxidizer-0.20.0-exe-x86_64-pc-windows.zip
7z x PyOxidizer-0.20.0-exe-x86_64-pc-windows.zip
Invoke-WebRequest 'https://github.com/ofek/pyapp/releases/latest/download/source.tar.gz' -OutFile .\pyapp-source.tar.gz
7z x pyapp-source.tar.gz
7z x pyapp-source.tar
mv pyapp-v* pyapp-latest
cd pyapp-latest
ls
mkdir build\x86_64-pc-windows-msvc\release\wininstall\
./pyoxidizer.exe build wininstall --release
ls .\build\x86_64-pc-windows-msvc\release\wininstall\
mkdir dist
xcopy .\build\x86_64-pc-windows-msvc\release\wininstall\* .\dist /s /e /k /i /y
copy README.md ./dist/
ls ./dist
cargo build --release
mkdir ..\dist
xcopy .\target\release\* ..\dist /s /e /k /i /y
copy README.md ../dist/
ls ../dist
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
Expand Down