mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-03 03:44:49 +00:00
Added macos build
This commit is contained in:
parent
3cf72ec436
commit
22ae994370
1 changed files with 34 additions and 1 deletions
35
.github/workflows/release.yaml
vendored
35
.github/workflows/release.yaml
vendored
|
@ -15,6 +15,10 @@ on:
|
|||
description: "Build Android"
|
||||
type: boolean
|
||||
default: true
|
||||
macos:
|
||||
description: "Build macOS"
|
||||
type: boolean
|
||||
default: true
|
||||
jobs:
|
||||
build:
|
||||
name: Build APK and AAB
|
||||
|
@ -59,4 +63,33 @@ jobs:
|
|||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: appbundle
|
||||
path: build/app/outputs/bundle/release/app-release.aab
|
||||
path: build/app/outputs/bundle/release/app-release.aab
|
||||
build:
|
||||
name: Build macOS
|
||||
if: github.event.inputs.macos == true
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: subosito/flutter-action@v1
|
||||
with:
|
||||
channel: "stable"
|
||||
- run: flutter clean
|
||||
- run: flutter pub get
|
||||
- run: flutter build macos --release
|
||||
- name: Get into build dir
|
||||
run: cd build/macos/Build/Products/Release
|
||||
- name: Geneate build folder
|
||||
run: mkdir AdGuard\ Home\ Manager
|
||||
- name: Copy app into folder
|
||||
run: cp AdGuard\ Home\ Manager.app AdGuard\ Home\ Manager/AdGuard\ Home\ Manager.app
|
||||
- name: Generate symbolic link to Applications dir
|
||||
run: ln -s /Applications AdGuard\ Home\ Manager
|
||||
- name: Generate dmg
|
||||
run: hdiutil create -srcfolder AdGuard\ Home\ Manager AdGuardHomeManager_${{ github.event.inputs.version }}_macOS_Universal.dmg
|
||||
- name: Create a Release in GitHub
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
artifacts: "AdGuardHomeManager_${{ github.event.inputs.version }}_macOS_Universal.dmg"
|
||||
token: ${{ secrets.GH_TOKEN }}
|
||||
tag: ${{ github.event.inputs.version }}
|
||||
commit: ${{ github.sha }}
|
Loading…
Add table
Reference in a new issue