diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e78352b..9f859a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 .. diff --git a/package.json b/package.json index 41c42c6..ecdb5a5 100644 --- a/package.json +++ b/package.json @@ -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" } -} \ No newline at end of file +} diff --git a/scripts/build.sh b/scripts/build.sh index b622ad1..7bccbaf 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -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 \ No newline at end of file +yarn run build:client