-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
78 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- name: Upload .snap file | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: dist/*.snap | ||
|
||
- name: Upload .deb file | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: dist/*.deb | ||
|
||
- name: Upload .AppImage file | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: dist/*.AppImage | ||
|
||
- name: Upload .rpm file | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: dist/*.rpm | ||
|
||
build-windows: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- name: Upload .exe file | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: dist/*.exe | ||
|
||
build-macos: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- name: Upload .dmg file | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: dist/*.dmg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,8 +24,8 @@ const config = { | |
}, | ||
linux: { | ||
category: 'Audio;AudioVideo', | ||
target: ['snap', 'deb', 'AppImage'], | ||
icon: join(__dirname, '..', 'src', 'img', 'app.icns'), | ||
target: ['snap', 'deb', 'AppImage', 'rpm'], | ||
icon: join(__dirname, '..', 'src', 'img', 'app.png'), | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
JustYuuto
Author
Owner
|
||
}, | ||
files: [ | ||
'!src/*', | ||
|
@@ -42,9 +42,9 @@ const options = { | |
x64: true, | ||
publish: 'never', | ||
}; | ||
if (process.platform === 'darwin') options.mac = ['dmg']; | ||
if (process.platform === 'darwin') options.mac = config.mac.target; | ||
// Linux programs like chmod are not supported on Windows | ||
if (process.platform !== 'win32') options.linux = ['snap', 'deb', 'AppImage']; | ||
if (process.platform !== 'win32') options.linux = config.linux.target; | ||
|
||
builder.build(options).then(() => { | ||
console.log('\nSetup built in the "dist" folder.'); | ||
|
Why did you put back the png icon, did it not work with the macos icon format?
The icon is not displaying in my app menu after installing the deb package...
At least the category works now