Skip to content

modifying path from installer #42

modifying path from installer

modifying path from installer #42

Workflow file for this run

name: Build and Release
on:
push:
tags:
- "*"
jobs:
build-macos:
environment:
name: release
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Install Wails CLI
run: |
go install github.com/wailsapp/wails/v2/cmd/wails@latest
- name: Build for macOS/arm64
run: |
wails build -platform darwin/arm64 -ldflags "-X main.Version=$GITHUB_REF_NAME"
- name: Zip macOS arm64 binary
run: |
zip -r Dolphin_MacOS.zip ./build/bin/Dolphin.app
- name: Upload macOS arm64 binary
uses: actions/upload-artifact@v4
with:
name: Dolphin_MacOS
path: Dolphin_MacOS.zip
build-windows-and-linux:
environment:
name: release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libgtk-3-dev libwebkit2gtk-4.0-dev nsis
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Install Wails CLI
run: |
go install github.com/wailsapp/wails/v2/cmd/wails@latest
- name: Build for Windows/amd64
run: |
wails build -platform windows/amd64 -ldflags "-X main.Version=$GITHUB_REF_NAME" --nsis
rm ./build/bin/Dolphin.exe
mv ./build/bin/Dolphin-amd64-installer.exe ./build/bin/Dolphin_Windows_Amd64-Setup.exe
mkdir ./Dolphin_Windows_Amd64-Setup
mv ./build/bin/Dolphin_Windows_Amd64-Setup.exe ./Dolphin_Windows_Amd64-Setup
- name: Zip Windows amd64 installer
run: |
zip -r Dolphin_Windows_Setup.zip . /Dolphin_Windows_Amd64-Setup
- name: Build for Linux/amd64
run: |
wails build -platform linux/amd64 -ldflags "-X main.Version=$GITHUB_REF_NAME"
mkdir ./Dolphin_Linux_Amd64
mv ./build/bin ./Dolphin_Linux_Amd64
- name: Zip Linux amd64 binary
run: |
zip -r Dolphin_Linux.zip ./Dolphin_Linux_Amd64
- name: Upload Windows/amd64 installer
uses: actions/upload-artifact@v4
with:
name: Dolphin_Windows_Setup
path: Dolphin_Windows_Setup.zip
- name: Upload Linux/amd64 binary
uses: actions/upload-artifact@v4
with:
name: Dolphin_Linux
path: Dolphin_Linux.zip
create-release:
environment:
name: release
runs-on: ubuntu-latest
needs:
- build-macos
- build-windows-and-linux
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download macOS arm64 binary
uses: actions/download-artifact@v4
with:
name: Dolphin_MacOS
path: ./artifacts
- name: Download Windows amd64 installer
uses: actions/download-artifact@v4
with:
name: Dolphin_Windows_Setup
path: ./artifacts
- name: Download Linux amd64 binary
uses: actions/download-artifact@v4
with:
name: Dolphin_Linux
path: ./artifacts
- name: List files in artifacts directory
run: ls -R ./artifacts
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
with:
files: |
./artifacts/Dolphin_MacOS.zip
./artifacts/Dolphin_Windows_Setup.zip
./artifacts/Dolphin_Linux.zip
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}