Skip to content

Commit

Permalink
Use AppImage build
Browse files Browse the repository at this point in the history
  • Loading branch information
qstokkink committed Nov 24, 2024
1 parent 89ea575 commit 7a37d7c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,24 @@ jobs:
shell: /bin/sh
install: |
apt-get update -q -y
apt-get install -q -y git patchelf python3-pip python-is-python3 wget
apt-get install -q -y git patchelf python3-pip python-is-python3
run: |
cd /myproject
wget https://raw.githubusercontent.com/marcelotduarte/cx_Freeze/refs/heads/main/requirements.txt
pip install --upgrade -r requirements.txt
pip install --pre --no-cache --upgrade -i https://test.pypi.org/simple/ cx-Freeze==7.3.0.dev1732258507
pip install --upgrade pip cx-Freeze
export PATH="/usr/local/bin:$PATH"
python -m cx_Freeze --script main.py --target-name=executable
./$(find build -name "executable")
python setup.py bdist_appimage
./$(find dist -name "AppImageTestApp-*.AppImage")
cat success.txt
# python -m cx_Freeze --script main.py --target-name=executable
#./$(find build -name "executable")
# cat success.txt
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: Build
path: |
build/exe.*/**
dist/*.AppImage
15 changes: 15 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"""
python3 setup.py bdist_appimage
./dist/AppImageTestApp-1.0.0-x86_64.AppImage
"""

from cx_Freeze import setup, Executable


setup(
name="AppImageTestApp",
version="1.0.0",
description="Of all applications, this is definitely one.",
options={"build_exe": {}},
executables=[Executable("main.py", base="gui")],
)

0 comments on commit 7a37d7c

Please sign in to comment.