-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from JoCat/master
Updating dependencies and adding autobuild using Actions
- Loading branch information
Showing
8 changed files
with
37,244 additions
and
5 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,94 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: ["master"] | ||
pull_request: | ||
branches: ["master"] | ||
|
||
jobs: | ||
build-macos: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v3.6.0 | ||
|
||
- name: Installing dependencies | ||
run: npm install -g appdmg | ||
|
||
- name: Build | ||
run: make build-macos installer-macos | ||
|
||
- name: Create release | ||
id: create_release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
draft: true | ||
files: releases/macOS/yamusic_desktop-macosx-amd64.dmg | ||
|
||
build-windows: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
|
||
- name: Build | ||
shell: cmd | ||
run: | | ||
mkdir build\Windows | ||
set CGO_CXXFLAGS="-I%cd%\libs\webview2" | ||
go build -ldflags="-H windowsgui" -o "build\Windows\Yandex.Music Desktop.exe" | ||
copy /Y libs\webview2\WebView2Loader.dll build\Windows | ||
- name: Pack release | ||
uses: vimtor/action-zip@v1 | ||
with: | ||
files: build\Windows | ||
dest: releases/Windows/yamusic_desktop-windows-10-amd64.zip | ||
|
||
- name: Create release | ||
id: create_release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
draft: true | ||
files: releases/Windows/yamusic_desktop-windows-10-amd64.zip | ||
|
||
build-linux: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
|
||
- name: Installing dependencies | ||
run: sudo apt install libgtk-3-dev libwebkit2gtk-4.0-dev | ||
|
||
- name: Build | ||
run: make build-linux archive-tar-linux | ||
|
||
- name: Rename file | ||
run: mv ./releases/Linux/yamusic_desktop.tar.gz ./releases/Linux/yamusic_desktop-linux-amd64.tar.gz | ||
|
||
- name: Create release | ||
id: create_release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
draft: true | ||
files: releases/Linux/yamusic_desktop-linux-amd64.tar.gz |
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
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,2 +1,2 @@ | ||
github.com/zserge/webview v0.0.0-20200516134046-4caf698fad53 h1:7qvr23qx/4M/y1/04h1XwQI+T+xZep+K+XuP3vBw3aE= | ||
github.com/zserge/webview v0.0.0-20200516134046-4caf698fad53/go.mod h1:qxc/5N3SOFrs3q+EAVHqaJ1oLbm+hHlDhfhRYg8x7wQ= | ||
github.com/webview/webview v0.0.0-20230110200822-73aee3dae745 h1:yq3jph00Ulex/MG1lgDpGceukf7dT06qi9YAB45Z7v0= | ||
github.com/webview/webview v0.0.0-20230110200822-73aee3dae745/go.mod h1:rpXAuuHgyEJb6kXcXldlkOjU6y4x+YcASKKXJNUhh0Y= |
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 @@ | ||
!*.dll |
Oops, something went wrong.