Skip to content

Commit

Permalink
fix: add BUILD_VERSION_WINDOWS
Browse files Browse the repository at this point in the history
  • Loading branch information
idootop committed Mar 30, 2024
1 parent fda5426 commit a84b3e0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/desktop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ jobs:
run: |
cd packages/feiyu && pnpm build:desktop
VERSION=$(node -p "require('./package.json').version")
BUILD_VERSION="-c \"{\\\"version\\\":\\\"$VERSION\\\"}\""
BUILD_VERSION="-c '{\\\"version\\\":\\\"$VERSION\\\"}'"
BUILD_VERSION_WINDOWS="-c '{\"version\":\"$VERSION\"}'"
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "build-version=$BUILD_VERSION" >> $GITHUB_OUTPUT
echo "build-version-windows=$BUILD_VERSION_WINDOWS" >> $GITHUB_OUTPUT
cd ${{ github.workspace }}
- name: 上传构建产物
uses: actions/upload-artifact@v4
Expand All @@ -45,6 +47,7 @@ jobs:
outputs:
version: ${{ steps.app.outputs.version }}
build-version: ${{ steps.app.outputs.build-version }}
build-version-windows: ${{ steps.app.outputs.build-version-windows }}

build-for-macos:
name: macOS
Expand Down Expand Up @@ -170,7 +173,7 @@ jobs:
run: |
cd packages/feiyu-desktop
pnpm install
pnpm tauri build ${{ needs.build.outputs.build-version }} -t ${{ matrix.target }} ${{ env.TAURI_ARGS }}
pnpm tauri build ${{ needs.build.outputs.build-version-windows }} -t ${{ matrix.target }} ${{ env.TAURI_ARGS }}
cd ${{ github.workspace }}
env:
TAURI_ARGS: ${{ matrix.arch == 'aarch64' && '--bundles nsis,updater' || '' }}
Expand Down

0 comments on commit a84b3e0

Please sign in to comment.