Skip to content

Commit

Permalink
Add universal mac build
Browse files Browse the repository at this point in the history
  • Loading branch information
mPyKen committed Apr 26, 2024
1 parent d3287f9 commit 8584288
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 67 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,48 +2,48 @@ name: Build
on:
push:
branches:
- master
- master
pull_request:
branches:
- master
- master

jobs:
build_on_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 18
- name: install dependencies
run: npm ci
- name: build
run: npm run make
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 18
- name: install dependencies
run: npm ci
- name: build
run: npm run make

build_on_mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 18
# install python 3.11 as in https://github.com/electron/forge/issues/3371
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: install dependencies
run: npm ci
- name: build
run: npm run make
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 18
# install python 3.11 as in https://github.com/electron/forge/issues/3371
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: install dependencies
run: npm ci
- name: build
run: npm run make -- --arch=universal

build_on_win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 18
- name: install dependencies
run: npm ci
- name: build
run: npm run make
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 18
- name: install dependencies
run: npm ci
- name: build
run: npm run make
71 changes: 35 additions & 36 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,52 +2,51 @@ name: Release
on:
push:
tags:
- 'v*'
- "v*"

jobs:

publish_on_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 18
- name: install dependencies
run: npm ci
- name: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run publish
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 18
- name: install dependencies
run: npm ci
- name: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run publish

publish_on_mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 18
# install python 3.11 as in https://github.com/electron/forge/issues/3371
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: install dependencies
run: npm ci
- name: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run publish
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 18
# install python 3.11 as in https://github.com/electron/forge/issues/3371
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: install dependencies
run: npm ci
- name: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run publish -- --arch=universal

publish_on_win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 18
- name: install dependencies
run: npm ci
- name: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run publish
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 18
- name: install dependencies
run: npm ci
- name: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run publish
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "screen-area-share",
"productName": "screen-area-share",
"version": "1.4.0",
"version": "1.4.1",
"description": "Share part of your screen on e.g. Teams",
"author": {
"name": "github.com/mPyKen"
Expand Down

0 comments on commit 8584288

Please sign in to comment.