Skip to content

Commit

Permalink
fix: fix windows release error
Browse files Browse the repository at this point in the history
  • Loading branch information
m1911star committed Nov 6, 2022
1 parent 736733c commit 72e7596
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ jobs:
- name: install node tools
run: |
npm install -g yarn
- name: install app dependencies & build excalidraw
- name: install app dependencies
run: |
yarn
git submodule update --init --recursive
cd ./excalidraw
yarn
yarn build
npx react-scripts build
cd ../tauri
cargo install --path .
cd ..
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"dev:client": "yarn tauri dev",
"build:client": "yarn tauri build",
"dev:excalidraw": "cd excalidraw && yarn start",
"build:excalidraw": "cd excalidraw && yarn build:app"
"build:excalidraw": "cd excalidraw && yarn build:prebuild && npx react-scripts build && yarn build:version"
},
"devDependencies": {
"@tauri-apps/cli": "^1.0.5",
"cross-env": "^7.0.3"
}
}
}
9 changes: 6 additions & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
yarn
git submodule update --remote
git submodule update --init --recursive
cd ./excalidraw
pnpm i
yarn
yarn build:prebuild
npx react-scripts build
yarn build:version
cd ../tauri
cargo install --path .
cd ..
yarn run build:client
yarn run build:client

0 comments on commit 72e7596

Please sign in to comment.