A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
ci: build only once for all three platforms
thecodrr4ab9b867d580
diff --git a/apps/web/.github/workflows/release.yml b/apps/web/.github/workflows/release.ymlindex 57e00e2ab..9b0119dd1 100644--- a/apps/web/.github/workflows/release.yml+++ b/apps/web/.github/workflows/release.yml@@ -3,7 +3,30 @@ name: Build/releaseon: workflow_dispatchjobs:+ build:+ runs-on: ubuntu-latest++ steps:+ - name: Check out Git repository+ uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.+ with:+ persist-credentials: false++ - name: Use Node.js 15.x+ uses: actions/[email protected]+ with:+ node-version: 15.x+ - run: npm install+ - run: npm build++ - name: Archive build artifact+ uses: actions/upload-artifact@v2+ with:+ name: build+ path: build/**/*+release:+ needs: buildruns-on: ${{ matrix.os }}# Platforms to build on/for@@ -22,6 +45,12 @@ jobs:with:node-version: 15.x+ - name: Download notesnook-web build+ uses: actions/download-artifact@v2+ with:+ name: build+ path: ./desktop+- name: Prepare for app notarization (macOS)if: startsWith(matrix.os, 'macos')# Import Apple API key for app notarization on macOSdiff --git a/apps/web/desktop/scripts/publish.mjs b/apps/web/desktop/scripts/publish.mjsindex 94e7ac4f8..892e9efc7 100755--- a/apps/web/desktop/scripts/publish.mjs+++ b/apps/web/desktop/scripts/publish.mjs@@ -1,18 +1,18 @@const { sep } = require("path");-const mv = require("mvdir");+// const mv = require("mvdir");console.log(`Script directory:`, __dirname);-cd(`${__dirname}${sep}..${sep}..${sep}`);+// cd(`${__dirname}${sep}..${sep}..${sep}`);-await $`yarn install`;+// await $`yarn install`;-await $`yarn build:desktop`;+// await $`yarn build:desktop`;-cd(`${__dirname}${sep}..${sep}`);+// cd(`${__dirname}${sep}..${sep}`);-const err = await mv(`..${sep}build`, `.${sep}build`);-if (err) throw new Error("Error moving build directory.");+// const err = await mv(`..${sep}build`, `.${sep}build`);+// if (err) throw new Error("Error moving build directory.");await $`esbuild .${sep}electron.js .${sep}preload.js --minify --external:electron --external:fsevents --bundle --outdir=.${sep}build --platform=node`;