-
Notifications
You must be signed in to change notification settings - Fork 0
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
fs
committed
Jan 22, 2024
1 parent
90c2bfa
commit f318c30
Showing
4 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
File renamed without changes.
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,38 @@ | ||
name: Build and Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
|
||
- name: Install Dependencies | ||
run: | | ||
cd music_player | ||
npm install | ||
- name: Build for Linux | ||
run: | | ||
cd music_player | ||
npm run dist | ||
- name: Upload Release Assets for Linux | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: | | ||
music_player/dist/*.deb | ||
music_player/dist/*.AppImage | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} |
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
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
{ | ||
"name": "music_player", | ||
"version": "1.0.0", | ||
"description": "", | ||
"description": "A simple music player application", | ||
"homepage": "https://github.com/fridayfang/electron_tutorial", | ||
"main": "index.js", | ||
"scripts": { | ||
"start": "electron .", | ||
|
@@ -13,6 +14,17 @@ | |
"mac": { | ||
"category": "public.app-category.music" | ||
}, | ||
"linux": { | ||
"category": "Chat;GNOME;GTK;Network;InstantMessaging", | ||
"packageCategory": "GNOME;GTK;Network;InstantMessaging", | ||
"description": "simpleMusicPlayer Desktop Client for Linux", | ||
"target": [ | ||
"deb", | ||
"AppImage" | ||
], | ||
"maintainer": "[email protected]", | ||
"artifactName": "${productName}-${version}.${ext}" | ||
}, | ||
"dmg": { | ||
"contents": [ | ||
{ | ||
|
@@ -31,6 +43,9 @@ | |
"width": 500, | ||
"height": 500 | ||
} | ||
}, | ||
"deb": { | ||
"synopsis": "Music Player Desktop App" | ||
} | ||
}, | ||
"author": "", | ||
|