diff --git a/.github/workflows/make.yml b/.github/workflows/make.yml index 13e7bbf..75afa89 100644 --- a/.github/workflows/make.yml +++ b/.github/workflows/make.yml @@ -1,124 +1,124 @@ -name: Build Installers - -on: push - -jobs: - macos: - name: Build for macOS - - strategy: - matrix: - os: [macos-latest] - - runs-on: ${{ matrix.os }} - - steps: - - name: Install Python - uses: actions/setup-python@v5 - with: - python-version: 3.12 - - # https://github.com/electron/forge/issues/2807 - # - run: python3 -m pip install setuptools --break-system-packages - - name: Set up Python for appdmg to be installed - run: python3 -m pip install setuptools - - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20 - - - run: | - npm install - npm install -g appdmg@0.6.6 - - # - name: macOS certificate - # env: - # APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} - # APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} - # run: | - # KEY_CHAIN=build.keychain - # CERTIFICATE_P12=certificate.p12 - # echo $APPLE_CERTIFICATE | base64 --decode > $CERTIFICATE_P12 - # security create-keychain -p actions $KEY_CHAIN - # security default-keychain -s $KEY_CHAIN - # security unlock-keychain -p actions $KEY_CHAIN - # security import $CERTIFICATE_P12 -k $KEY_CHAIN -P $APPLE_CERTIFICATE_PASSWORD -T /usr/bin/codesign; - # security set-key-partition-list -S apple-tool:,apple: -s -k actions $KEY_CHAIN - # rm -fr *.p12 - - - run: npm run make -- --arch=universal - - - uses: actions/upload-artifact@v4 - with: - name: build_${{ matrix.os }} - path: out/make - if-no-files-found: error - retention-days: 1 - - linux: - name: Build for Linux - - strategy: - matrix: - os: [ubuntu-latest] - - runs-on: ${{ matrix.os }} - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20 - - # - name: Fix Permissions - # # Workaround for https://github.com/electron/electron/issues/17972 - # run: | - # sudo chmod 4755 node_modules/electron/dist/chrome-sandbox - # sudo chown root node_modules/electron/dist/chrome-sandbox - - # sudo apt install libx11-dev libxtst-dev libwayland-dev libxkbcommon-dev - - run: npm install - - - run: npm run make - - - uses: actions/upload-artifact@v4 - with: - name: build_${{ matrix.os }} - path: out/make - if-no-files-found: error - retention-days: 1 - - windows: - name: Build for Windows - - strategy: - matrix: - os: [windows-latest] - - runs-on: ${{ matrix.os }} - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20 - - # - name: Install Dependencies - # # For some reason cmake.js sometimes skips the build step in CI on Windows in this - # # case. So we install and execute cmake.js manually. - # run: | - # npm install cmake-js -g - # npx cmake-js install - # npm install - - - run: npm install - - - run: npm run make - - - uses: actions/upload-artifact@v4 - with: - name: build_${{ matrix.os }} - path: out/make - if-no-files-found: error - retention-days: 1 +# name: Build Installers + +# on: push + +# jobs: +# macos: +# name: Build for macOS + +# strategy: +# matrix: +# os: [macos-latest] + +# runs-on: ${{ matrix.os }} + +# steps: +# - name: Install Python +# uses: actions/setup-python@v5 +# with: +# python-version: 3.12 + +# # https://github.com/electron/forge/issues/2807 +# # - run: python3 -m pip install setuptools --break-system-packages +# - name: Set up Python for appdmg to be installed +# run: python3 -m pip install setuptools + +# - uses: actions/checkout@v4 +# - uses: actions/setup-node@v4 +# with: +# node-version: 20 + +# - run: | +# npm install +# npm install -g appdmg@0.6.6 + +# # - name: macOS certificate +# # env: +# # APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} +# # APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} +# # run: | +# # KEY_CHAIN=build.keychain +# # CERTIFICATE_P12=certificate.p12 +# # echo $APPLE_CERTIFICATE | base64 --decode > $CERTIFICATE_P12 +# # security create-keychain -p actions $KEY_CHAIN +# # security default-keychain -s $KEY_CHAIN +# # security unlock-keychain -p actions $KEY_CHAIN +# # security import $CERTIFICATE_P12 -k $KEY_CHAIN -P $APPLE_CERTIFICATE_PASSWORD -T /usr/bin/codesign; +# # security set-key-partition-list -S apple-tool:,apple: -s -k actions $KEY_CHAIN +# # rm -fr *.p12 + +# - run: npm run make -- --arch=universal + +# - uses: actions/upload-artifact@v4 +# with: +# name: build_${{ matrix.os }} +# path: out/make +# if-no-files-found: error +# retention-days: 1 + +# linux: +# name: Build for Linux + +# strategy: +# matrix: +# os: [ubuntu-latest] + +# runs-on: ${{ matrix.os }} + +# steps: +# - uses: actions/checkout@v4 +# - uses: actions/setup-node@v4 +# with: +# node-version: 20 + +# # - name: Fix Permissions +# # # Workaround for https://github.com/electron/electron/issues/17972 +# # run: | +# # sudo chmod 4755 node_modules/electron/dist/chrome-sandbox +# # sudo chown root node_modules/electron/dist/chrome-sandbox + +# # sudo apt install libx11-dev libxtst-dev libwayland-dev libxkbcommon-dev +# - run: npm install + +# - run: npm run make + +# - uses: actions/upload-artifact@v4 +# with: +# name: build_${{ matrix.os }} +# path: out/make +# if-no-files-found: error +# retention-days: 1 + +# windows: +# name: Build for Windows + +# strategy: +# matrix: +# os: [windows-latest] + +# runs-on: ${{ matrix.os }} + +# steps: +# - uses: actions/checkout@v4 +# - uses: actions/setup-node@v4 +# with: +# node-version: 20 + +# # - name: Install Dependencies +# # # For some reason cmake.js sometimes skips the build step in CI on Windows in this +# # # case. So we install and execute cmake.js manually. +# # run: | +# # npm install cmake-js -g +# # npx cmake-js install +# # npm install + +# - run: npm install + +# - run: npm run make + +# - uses: actions/upload-artifact@v4 +# with: +# name: build_${{ matrix.os }} +# path: out/make +# if-no-files-found: error +# retention-days: 1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e689ba1 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,61 @@ +name: Release Installers + +on: push +# on: +# release: +# types: +# - released + +jobs: + release-macos: + name: Release for macOS + + strategy: + matrix: + os: [macos-latest] + + runs-on: ${{ matrix.os }} + + steps: + - name: Install Python + uses: actions/setup-python@v5 + with: + python-version: 3.12 + + # https://github.com/electron/forge/issues/2807 + # - run: python3 -m pip install setuptools --break-system-packages + - name: Set up Python for appdmg to be installed + run: python3 -m pip install setuptools + + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + + - run: | + npm install + npm install -g appdmg@0.6.6 + + # - name: macOS certificate + # env: + # APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} + # APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} + # run: | + # KEY_CHAIN=build.keychain + # CERTIFICATE_P12=certificate.p12 + # echo $APPLE_CERTIFICATE | base64 --decode > $CERTIFICATE_P12 + # security create-keychain -p actions $KEY_CHAIN + # security default-keychain -s $KEY_CHAIN + # security unlock-keychain -p actions $KEY_CHAIN + # security import $CERTIFICATE_P12 -k $KEY_CHAIN -P $APPLE_CERTIFICATE_PASSWORD -T /usr/bin/codesign; + # security set-key-partition-list -S apple-tool:,apple: -s -k actions $KEY_CHAIN + # rm -fr *.p12 + + - name: publish + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # APPLE_ID: ${{ secrets.APPLE_ID }} + # APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} + # APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} + # APPLE_SIGNING_ID: ${{ secrets.APPLE_SIGNING_ID }} + run: npm run publish -- --arch=universal diff --git a/release.yml b/release.yml deleted file mode 100644 index b8e42bb..0000000 --- a/release.yml +++ /dev/null @@ -1,57 +0,0 @@ -# name: Release Installers - -# on: -# push: -# tags: -# - "v*" - -# jobs: -# macos: -# name: Release for macOS - -# strategy: -# matrix: -# os: [macos-latest] # ubuntu-latest, windows-latest - -# runs-on: ${{ matrix.os }} - -# steps: -# - name: Install Python -# uses: actions/setup-python@v5 -# with: -# python-version: 3.12 - -# # https://github.com/electron/forge/issues/2807 -# # - run: python3 -m pip install setuptools --break-system-packages -# - name: Set up Python for appdmg to be installed -# run: python3 -m pip install setuptools - -# - uses: actions/checkout@v4 -# - uses: actions/setup-node@v4 -# with: -# node-version: 20 - -# - name: macOS certificate -# env: -# APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} -# APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} -# run: | -# KEY_CHAIN=build.keychain -# CERTIFICATE_P12=certificate.p12 -# echo $APPLE_CERTIFICATE | base64 --decode > $CERTIFICATE_P12 -# security create-keychain -p actions $KEY_CHAIN -# security default-keychain -s $KEY_CHAIN -# security unlock-keychain -p actions $KEY_CHAIN -# security import $CERTIFICATE_P12 -k $KEY_CHAIN -P $APPLE_CERTIFICATE_PASSWORD -T /usr/bin/codesign; -# security set-key-partition-list -S apple-tool:,apple: -s -k actions $KEY_CHAIN -# rm -fr *.p12 - -# - name: publish -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# APPLE_ID: ${{ secrets.APPLE_ID }} -# APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} -# APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} -# APPLE_SIGNING_ID: ${{ secrets.APPLE_SIGNING_ID }} -# shell: bash -# run: npm run publish -- --dry-run --arch=universal