From 8a9a1259e816cca0830db073fd2c4398b00ccaaa Mon Sep 17 00:00:00 2001 From: Quacksire <19170969+quacksire@users.noreply.github.com> Date: Fri, 28 Jan 2022 22:35:58 -0800 Subject: [PATCH] lets see if this works --- .github/workflows/release-all.yml | 36 +++++++++++++++++++++++++++++++ package.json | 3 ++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release-all.yml diff --git a/.github/workflows/release-all.yml b/.github/workflows/release-all.yml new file mode 100644 index 00000000..a7355af0 --- /dev/null +++ b/.github/workflows/release-all.yml @@ -0,0 +1,36 @@ +name: Build/release + +on: push + +jobs: + release: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [macos-latest, ubuntu-latest, windows-latest] + + steps: + - create-tag: + uses: rickstaa/action-create-tag@v1 + with: + tag: "canary-${{ github.sha }}" + message: "https://github.com/ciderapp/Cider/commit/${{ github.sha }}" + + - name: Check out Git repository + uses: actions/checkout@v1 + + - name: Install Node.js, NPM and Yarn + uses: actions/setup-node@v1 + with: + node-version: 10 + + - name: Build/release Electron app + uses: samuelmeuli/action-electron-builder@v1 + with: + # GitHub token, automatically provided to the action + # (No need to define this secret in the repo settings) + github_token: ${{ secrets.github_token }} + + # release the app after building + release: true \ No newline at end of file diff --git a/package.json b/package.json index 5e4adcc0..6536fc01 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "version": "1.1.0", "description": "A new look into listening and enjoying music in style and performance.", "license": "AGPL-3.0", - "main": "./build/index.js", + "main": "./src/main/index.ts", "author": "Cider Collective (https://cider.sh)", "repository": "https://github.com/ciderapp/Cider.git", "bugs": { @@ -22,6 +22,7 @@ "start:darwin": "npm run build && export ELECTRON_ENABLE_LOGGING=true && electron ./build/index.js --enable-accelerated-mjpeg-decode --enable-accelerated-video --disable-gpu-driver-bug-workarounds --ignore-gpu-blacklist --enable-native-gpu-memory-buffers", "pack": "electron-builder --dir", "dist": "npm run build && electron-builder", + "dist:all": "npm run build && electron-builder -mwl", "msft": "npm run build && electron-builder -c msft-package.json", "postinstall": "electron-builder install-app-deps" },