mirror of
https://github.com/Royce551/FRESHMusicPlayer.git
synced 2025-01-22 10:51:52 -05:00
Set up GitHub Actions
This commit is contained in:
parent
753d7bbd94
commit
78a6ed265f
3 changed files with 54 additions and 0 deletions
29
.github/workflows/macos.yml
vendored
Normal file
29
.github/workflows/macos.yml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macOS-latest]
|
||||
fail-fast: false
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: "Install Dependencies"
|
||||
run: >
|
||||
brew install --cask dotnet-sdk
|
||||
brew install nodejs
|
||||
npm install -g appdmg
|
||||
- name: "Build Project"
|
||||
run: ./Distribution/build-macos.sh
|
||||
- name: "Create Disk Image"
|
||||
run: appdmg ./Distribution/app-dmg-spec.json ./FRESHMusicPlayer.dmg
|
||||
- uses: actions/upload-artifact@v1
|
||||
name: "Upload Artifact"
|
||||
with:
|
||||
name: "FRESHMusicPlayer.dmg"
|
||||
path: "./FRESHMusicPlayer.dmg"
|
BIN
Distribution/app-dmg-background.png
Normal file
BIN
Distribution/app-dmg-background.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
25
Distribution/app-dmg-spec.json
Normal file
25
Distribution/app-dmg-spec.json
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"title": "FRESHMusicPlayer",
|
||||
"background": "app-dmg-background.png",
|
||||
"icon-size": 48,
|
||||
"window": {
|
||||
"size": {
|
||||
"width": 600,
|
||||
"height": 420
|
||||
}
|
||||
},
|
||||
"contents": [
|
||||
{
|
||||
"x": 125,
|
||||
"y": 225,
|
||||
"type": "file",
|
||||
"path": "FRESHMusicPlayer.app"
|
||||
},
|
||||
{
|
||||
"x": 470,
|
||||
"y": 225,
|
||||
"type": "link",
|
||||
"path": "/Applications"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue