Update package release workflow

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2025-06-22 10:40:46 +08:00
parent 7d8d1a0ea2
commit 66ee4f2acf
+15 -10
View File
@@ -116,19 +116,21 @@ jobs:
echo "Unknown runner architecture: $RUNNER_ARCH"
exit 1
fi
echo "linuxdeploy architecture is $linuxdeploy_arch"
mkdir .linuxdeploy-bin
echo "$PWD/.linuxdeploy-bin" >> $GITHUB_PATH
wget -P .linuxdeploy-bin https://github.com/linuxdeploy/linuxdeploy/releases/latest/download/linuxdeploy-$linuxdeploy_arch.AppImage
wget -P .linuxdeploy-bin https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/latest/download/linuxdeploy-plugin-qt-$linuxdeploy_arch.AppImage
wget -P .linuxdeploy-bin https://github.com/AppImage/appimagetool/releases/latest/download/appimagetool-$linuxdeploy_arch.AppImage
chmod +x .linuxdeploy-bin/*
linuxdeploy_name=".linuxdeploy-bin"
mkdir ${linuxdeploy_name}
echo "${PWD}/${linuxdeploy_name}" >> $GITHUB_PATH
wget -P ${linuxdeploy_name} https://github.com/linuxdeploy/linuxdeploy/releases/latest/download/linuxdeploy-${linuxdeploy_arch}.AppImage
wget -P ${linuxdeploy_name} https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/latest/download/linuxdeploy-plugin-qt-${linuxdeploy_arch}.AppImage
wget -P ${linuxdeploy_name} https://github.com/AppImage/appimagetool/releases/latest/download/appimagetool-${linuxdeploy_arch}.AppImage
chmod +x ${linuxdeploy_name}/*
if: runner.os == 'Linux'
- name: Set up Python for Windows7
uses: LorenEteval/setup-python-win7@v1
with:
python-version: ${{ matrix.python-version }}
check-latest: true
if: matrix.id == 'win7'
- name: Set up Python
uses: actions/setup-python@v5
@@ -150,7 +152,7 @@ jobs:
python -m pip install "numpy<2"
python -m pip install PySide6-Essentials==6.5.3
else
python -m pip install PySide6-Essentials==$PYSIDE6_TARGET_VERSION
python -m pip install PySide6-Essentials==${PYSIDE6_TARGET_VERSION}
fi
python -m pip install -r requirements.txt
python -m pip install nuitka imageio requests
@@ -173,7 +175,6 @@ jobs:
export GOROOT="$PWD/${go_name}"
export CGO_ENABLED=1
export PATH="${GOROOT}/bin:$PATH"
echo "WIN_VER_COMPATIBLE=windows" >> $GITHUB_ENV
fi
go version
python -m pip install "Xray-core >= 1.8.8"
@@ -189,7 +190,11 @@ jobs:
go version
python -m pip install "hysteria > 1.3.5"
- name: Run deploy script
run: python Deploy.py
run: |
if [[ "${{ matrix.id }}" == "win7" ]]; then
export WIN_VER_COMPATIBLE="windows"
fi
python Deploy.py
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with: