Skip to content

Commit

Permalink
fix desktop workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminpkane committed Aug 10, 2021
1 parent d9628b6 commit 5894767
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
-v ~/.cache/electron:/root/.cache/electron \
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
electronuserland/builder:wine \
cd packages/desktop && yarn package-win --publish never
yarn workspace FiftyOne package-win --publish never
- name: Set environment
env:
RELEASE_TAG: ${{ github.ref }}
Expand Down
3 changes: 2 additions & 1 deletion app/packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"private": true,
"scripts": {
"dev": "vite",
"build": "tsc && vite build && yarn copy-to-python",
"build": "yarn build-bare && yarn copy-to-python",
"build-bare": "tsc && vite build",
"copy-to-python": "rm -rf ../../../fiftyone/server/static && cp -r ./dist ../../../fiftyone/server/static",
"copy-to-desktop": "rm -rf ../desktop/dist/ && cp -r ./dist ../desktop/dist",
"start": "vite preview"
Expand Down
2 changes: 1 addition & 1 deletion app/packages/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"prettier": "@fiftyone/prettier-config",
"scripts": {
"build-desktop": "yarn build-desktop-source && yarn pull-desktop-source && tsc -p tsconfig.json",
"build-desktop-source": "yarn workspace @fiftyone/app build",
"build-desktop-source": "yarn workspace @fiftyone/app build-bare",
"pull-desktop-source": "yarn workspace @fiftyone/app copy-to-desktop",
"start-desktop": "cross-env DEBUG_APP=true electron ./dist/main.js",
"package-mac": "yarn build-desktop && electron-builder build --mac",
Expand Down

0 comments on commit 5894767

Please sign in to comment.