取消appimage,改用tar打包

This commit is contained in:
wszqkzqk 2022-07-24 16:11:41 +08:00
parent c0963931b8
commit 87da04c9a1
2 changed files with 7 additions and 21 deletions

View File

@ -128,26 +128,19 @@ jobs:
- name: Build pypvz with Nuitka - name: Build pypvz with Nuitka
run: | run: |
yes | python -m nuitka --standalone \ yes | python -m nuitka --standalone \
--onefile \
--show-progress \ --show-progress \
--show-memory \ --show-memory \
--output-dir=out \ --output-dir=out \
--linux-onefile-icon=pypvz.ico \ --linux-onefile-icon=pypvz.ico \
--include-data-dir=resources=resources \ --include-data-dir=resources=resources \
-o ./out/pypvz-with-python${{ matrix.python_version }}-nuitka-linux-x64.appimage \ -o ./out/pypvz \
main.py main.py
tar -cvpaf -C ./out out pypvz-with-python${{ matrix.python_version }}-nuitka-linux-x64.tar.zst
# artifact压缩包处上传包含运行环境的文件夹
- name: "Upload binaries"
uses: actions/upload-artifact@v2
with:
name: artifact-linux-python-${{ matrix.python_version }}
path: ./out/*.dist
- name: Release the version built by nuitka - name: Release the version built by nuitka
uses: ncipollo/release-action@v1 uses: ncipollo/release-action@v1
with: with:
allowUpdates: true allowUpdates: true
tag: Latest tag: Latest
artifacts: ./out/*nuitka*.appimage artifacts: ./*.tar.zst
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -116,7 +116,7 @@ jobs:
- name: 🧳 Install dependencies - name: 🧳 Install dependencies
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install patchelf gdb ccache libfuse2 sudo apt-get install patchelf gdb ccache libfuse2 zstd tar
python -m pip install --no-python-version-warning --disable-pip-version-check zstandard appdirs ordered-set tqdm Jinja2 python -m pip install --no-python-version-warning --disable-pip-version-check zstandard appdirs ordered-set tqdm Jinja2
python -m pip install --no-python-version-warning --disable-pip-version-check nuitka python -m pip install --no-python-version-warning --disable-pip-version-check nuitka
python -m pip install --no-python-version-warning --disable-pip-version-check pygame python -m pip install --no-python-version-warning --disable-pip-version-check pygame
@ -130,26 +130,19 @@ jobs:
- name: Build pypvz with Nuitka - name: Build pypvz with Nuitka
run: | run: |
yes | python -m nuitka --standalone \ yes | python -m nuitka --standalone \
--onefile \
--show-progress \ --show-progress \
--show-memory \ --show-memory \
--output-dir=out \ --output-dir=out \
--linux-onefile-icon=pypvz.ico \ --linux-onefile-icon=pypvz.ico \
--include-data-dir=resources=resources \ --include-data-dir=resources=resources \
-o ./out/pypvz-with-python${{ matrix.python_version }}-nuitka-linux-x64.appimage \ -o ./out/pypvz \
main.py main.py
tar -cvpaf -C ./out out pypvz-with-python${{ matrix.python_version }}-nuitka-linux-x64.tar.zst
# artifact压缩包处上传包含运行环境的文件夹
- name: "Upload binaries"
uses: actions/upload-artifact@v2
with:
name: artifact-linux-python-${{ matrix.python_version }}
path: ./out/*.dist
- name: Release the version built by nuitka - name: Release the version built by nuitka
uses: ncipollo/release-action@v1 uses: ncipollo/release-action@v1
with: with:
allowUpdates: true allowUpdates: true
tag: Latest tag: Latest
artifacts: ./out/*nuitka*.appimage artifacts: ./*.tar.zst
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}