Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

ci: set package_root to ./desktop

thecodrr667c9044f188
diff --git a/apps/web/.github/workflows/release.yml b/apps/web/.github/workflows/release.yml
index 0b8c22389..57e00e2ab 100644
--- a/apps/web/.github/workflows/release.yml
+++ b/apps/web/.github/workflows/release.yml
@@ -29,12 +29,10 @@ jobs:
mkdir -p ~/private_keys/
echo '${{ secrets.api_key }}' > ~/private_keys/AuthKey_${{ secrets.api_key_id }}.p8
- - name: Change directory to ./desktop
- run: cd desktop
-
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
+ package_root: ./desktop
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.PERSONAL_GH_TOKEN }}
diff --git a/apps/web/desktop/scripts/publish.sh b/apps/web/desktop/scripts/publish.sh
index f525da837..af2d35204 100755
--- a/apps/web/desktop/scripts/publish.sh
+++ b/apps/web/desktop/scripts/publish.sh
@@ -1,6 +1,12 @@
# Go to notes-web directory
cd ../
+# Generate the web app build
+if ! yarn install; then
+ echo "Failed to install web app dependencies."
+ exit
+fi
+
# Generate the web app build
if ! yarn build:desktop; then
echo "Failed to build web app."
@@ -8,7 +14,7 @@ if ! yarn build:desktop; then
fi
# Change back to desktop directory
-cd desktop
+cd ./desktop
# Copy build files to desktop folder
# NOTE: we have to do this because electron-builder cannot work in parent directories.