Skip to content

Commit

Permalink
build: Fix Tauri build command
Browse files Browse the repository at this point in the history
  • Loading branch information
Amery2010 committed Jun 12, 2024
1 parent 4590505 commit 35f04d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18]
include:
- platform: 'macos-latest' # for Arm based macs (M1 and above).
args: '--target aarch64-apple-darwin'
Expand Down Expand Up @@ -50,10 +49,10 @@ jobs:
with:
version: 9

- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 18
cache: 'pnpm'

- name: install frontend dependencies
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "talk-with-gemini",
"version": "0.11.3",
"version": "0.11.4",
"private": true,
"author": "Amery2010 <amery@xiangfa.org>",
"license": "GPL-3.0-only",
Expand All @@ -10,6 +10,8 @@
"build:docker": "cross-env NEXT_PUBLIC_BUILD_MODE=standalone next build",
"build:export": "cross-env NEXT_PUBLIC_BUILD_MODE=export next build",
"tauri": "tauri",
"tauri:dev": "tauri dev",
"tauri:build": "tauri build",
"start": "next start",
"lint": "next lint"
},
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "../node_modules/@tauri-apps/cli/schema.json",
"build": {
"beforeBuildCommand": "pnpm build",
"beforeBuildCommand": "cross-env NEXT_PUBLIC_BUILD_MODE=export pnpm build",
"beforeDevCommand": "pnpm dev",
"devPath": "http://localhost:3000",
"distDir": "../out"
Expand Down

0 comments on commit 35f04d4

Please sign in to comment.