Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/DantSu/Telmi-Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
DantSu committed Sep 26, 2024
2 parents 06dc51f + c5ef46d commit cb4cca1
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build/release

on:
push:
tags:
- '**'

jobs:
release:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- name: Check out Git repository
uses: actions/checkout@v4

- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v4
with:
node-version: 20

- uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Remove piper Darwin
run: rm -r extraResources/*/darwin
if: ${{ ! startsWith(matrix.os, 'macos') }}

- name: Remove piper linux
run: rm -r extraResources/*/linux
if: ${{ ! startsWith(matrix.os, 'ubuntu') }}

- name: Remove piper win32
run: rm -r extraResources/*/win32
if: ${{ ! startsWith(matrix.os, 'windows') }}

- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
github_token: ${{ secrets.github_token }}
release: ${{ startsWith(github.ref, 'refs/tags/') }}
14 changes: 13 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@
"com.apple.security.device.audio-input": true
}
},
"linux": {
"target": [
{
"target": "AppImage"
}
]
},
"extraResources": [
{
"from": "./extraResources/",
Expand All @@ -73,5 +80,10 @@
"buildResources": "electron/build",
"output": "electron/dist"
}
}
},
"publish": [
{
"vPrefixedTagName": false
}
]
}
1 change: 1 addition & 0 deletions src/App/Components/SVG/SVGLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function SVGLayout({observer, scale, children, marginRight, marginBottom}) {
el.setAttribute('viewBox', '0 0 ' + width + ' ' + height)
}
},
// eslint-disable-next-line react-hooks/exhaustive-deps
[marginRight, marginBottom, scale, observer]
)
return <svg ref={callback}>{children}</svg>
Expand Down

0 comments on commit cb4cca1

Please sign in to comment.