forked from boos/BoosAPI
Merge branch 'main' of https://github.com/cita-777/metapi
This commit is contained in:
@@ -114,20 +114,6 @@ jobs:
|
|||||||
name: metapi-dist-${{ github.sha }}
|
name: metapi-dist-${{ github.sha }}
|
||||||
path: .
|
path: .
|
||||||
|
|
||||||
- name: Prefetch AppImage tools
|
|
||||||
if: runner.os == 'Linux'
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
APPIMAGE_TOOLS_URL: https://github.com/electron-userland/electron-builder-binaries/releases/download/appimage%401.0.2/appimage-tools-runtime-20251108.tar.gz
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
APPIMAGE_TOOLS_DIR="${{ runner.temp }}/.cache/appimage-tools"
|
|
||||||
if [ -x "$APPIMAGE_TOOLS_DIR/mksquashfs" ]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
mkdir -p "$APPIMAGE_TOOLS_DIR"
|
|
||||||
curl -fL --retry 5 --retry-all-errors --retry-delay 5 "$APPIMAGE_TOOLS_URL" | tar -xz -C "$APPIMAGE_TOOLS_DIR"
|
|
||||||
|
|
||||||
- name: Build desktop artifacts (Windows)
|
- name: Build desktop artifacts (Windows)
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
@@ -145,7 +131,7 @@ jobs:
|
|||||||
if ($env:WIN_CSC_KEY_PASSWORD_INPUT) { $env:WIN_CSC_KEY_PASSWORD = $env:WIN_CSC_KEY_PASSWORD_INPUT }
|
if ($env:WIN_CSC_KEY_PASSWORD_INPUT) { $env:WIN_CSC_KEY_PASSWORD = $env:WIN_CSC_KEY_PASSWORD_INPUT }
|
||||||
for ($attempt = 1; $attempt -le 2; $attempt++) {
|
for ($attempt = 1; $attempt -le 2; $attempt++) {
|
||||||
Write-Host "Desktop build attempt $attempt/2"
|
Write-Host "Desktop build attempt $attempt/2"
|
||||||
npm run package:desktop
|
npm run package:desktop -- --config.npmRebuild=false
|
||||||
if ($LASTEXITCODE -eq 0) {
|
if ($LASTEXITCODE -eq 0) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
@@ -165,12 +151,11 @@ jobs:
|
|||||||
ELECTRON_BUILDER_CACHE: ${{ runner.temp }}/.cache/electron-builder
|
ELECTRON_BUILDER_CACHE: ${{ runner.temp }}/.cache/electron-builder
|
||||||
ELECTRON_BUILDER_BINARIES_MIRROR: https://github.com/electron-userland/electron-builder-binaries/releases/download/
|
ELECTRON_BUILDER_BINARIES_MIRROR: https://github.com/electron-userland/electron-builder-binaries/releases/download/
|
||||||
npm_config_electron_builder_binaries_mirror: https://github.com/electron-userland/electron-builder-binaries/releases/download/
|
npm_config_electron_builder_binaries_mirror: https://github.com/electron-userland/electron-builder-binaries/releases/download/
|
||||||
APPIMAGE_TOOLS_PATH: ${{ runner.temp }}/.cache/appimage-tools
|
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
for attempt in 1 2; do
|
for attempt in 1 2; do
|
||||||
echo "Desktop build attempt ${attempt}/2"
|
echo "Desktop build attempt ${attempt}/2"
|
||||||
if npm run package:desktop; then
|
if npm run package:desktop -- --config.npmRebuild=false; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
if [ "$attempt" -eq 2 ]; then
|
if [ "$attempt" -eq 2 ]; then
|
||||||
@@ -199,7 +184,7 @@ jobs:
|
|||||||
if [ -n "${APPLE_TEAM_ID_INPUT:-}" ]; then export APPLE_TEAM_ID="$APPLE_TEAM_ID_INPUT"; fi
|
if [ -n "${APPLE_TEAM_ID_INPUT:-}" ]; then export APPLE_TEAM_ID="$APPLE_TEAM_ID_INPUT"; fi
|
||||||
for attempt in 1 2; do
|
for attempt in 1 2; do
|
||||||
echo "Desktop build attempt ${attempt}/2"
|
echo "Desktop build attempt ${attempt}/2"
|
||||||
if npm run package:desktop; then
|
if npm run package:desktop -- --config.npmRebuild=false; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
if [ "$attempt" -eq 2 ]; then
|
if [ "$attempt" -eq 2 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user