summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-06-26 21:58:14 -0500
committerTim Keller <tjk@tjkeller.xyz>2025-06-26 21:58:14 -0500
commit18abed6f86b1241147e853c86f9a731fb9f3d26d (patch)
tree83e3a51dda3aca65b56f21f53d8fb22c5808d47d /.github
parent2ae1d764ddaa27f09debc2d08af8a001dbae639c (diff)
downloadimmich-frame-18abed6f86b1241147e853c86f9a731fb9f3d26d.tar.xz
immich-frame-18abed6f86b1241147e853c86f9a731fb9f3d26d.zip
disable optimizations and fix github action
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/pyinstaller-release.yaml31
1 files changed, 20 insertions, 11 deletions
diff --git a/.github/workflows/pyinstaller-release.yaml b/.github/workflows/pyinstaller-release.yaml
index c1c3700..da3596f 100644
--- a/.github/workflows/pyinstaller-release.yaml
+++ b/.github/workflows/pyinstaller-release.yaml
@@ -18,12 +18,17 @@ jobs:
- name: Install Webpack dependencies
working-directory: ./static
- run: npm install
+ run: npm ci
- name: Run Webpack
working-directory: ./static
run: npx webpack
+ - name: Verify dist directory
+ working-directory: ./static
+ run: |
+ ls -la dist || { echo "Error: dist directory not found"; exit 1; }
+
- name: Upload frontend bundle
uses: actions/upload-artifact@v4
with:
@@ -40,14 +45,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
-# - name: Run pyinstaller
-# uses: sayyid5416/pyinstaller@v1
-# with:
-# python_arch: ${{ matrix.arch }}
-# spec: 'pix.spec'
-# requirements: 'requirements.txt'
-# #upload_exe_with_name: 'pix'
-# options: --onefile
+ - name: Download frontend bundle
+ uses: actions/download-artifact@v4
+ with:
+ name: frontend-bundle
+ path: ./static/dist
- name: Set up QEMU for cross-architecture
if: matrix.arch == 'arm64'
@@ -77,9 +79,9 @@ jobs:
TARGET_ARCH: ${{ matrix.arch }}
run: |
if [ "${{ matrix.arch }}" = "arm64" ]; then
- pyinstaller --target-arch aarch64 --onefile --add-data "./static/dist:static" --add-data "./static/public:public" --hidden-import=flask_socketio --hidden-import=engineio pix.py
+ ARCHITECTURE=aarch64 pyinstaller pix.spec
else
- pyinstaller --onefile --add-data "./static/dist:static" --add-data "./static/public:public" --hidden-import=flask_socketio --hidden-import=engineio pix.py
+ pyinstaller pix.spec
fi
- name: Rename the executable
@@ -99,6 +101,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
+ - name: Download executables
+ uses: actions/download-artifact@v4
+ with:
+ pattern: pixpy-*
+ path: ./dist
+ merge-multiple: true
+
- name: Create Release and Upload Assets
uses: softprops/action-gh-release@v2
with: