mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
[CD] creating dmg manually instead of flutter_distributor
This commit is contained in:
parent
26652d3734
commit
48e6bb45ea
35
.github/workflows/release-build.yml
vendored
35
.github/workflows/release-build.yml
vendored
@ -68,33 +68,28 @@ jobs:
|
|||||||
publish_macos:
|
publish_macos:
|
||||||
runs-on: macos-11
|
runs-on: macos-11
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
repository: KRTirtho/flutter_distributor
|
|
||||||
ref: deb-implementation
|
|
||||||
path: build/flutter_distributor
|
|
||||||
- name: Get latest tag
|
- name: Get latest tag
|
||||||
id: tag
|
|
||||||
uses: dawidd6/action-get-tag@v1
|
uses: dawidd6/action-get-tag@v1
|
||||||
|
id: tag
|
||||||
with:
|
with:
|
||||||
strip_v: true
|
strip_v: true
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
cache: true
|
cache: true
|
||||||
- run: |
|
- run: flutter config --enable-macos-desktop
|
||||||
flutter config --enable-macos-desktop
|
- run: flutter pub get
|
||||||
flutter pub get
|
- run: dart bin/create-secrets.dart '${{ secrets.LYRICS_SECRET }}' '${{ secrets.SPOTIFY_SECRET }}'
|
||||||
dart bin/create-secrets.dart '${{ secrets.LYRICS_SECRET }}' '${{ secrets.SPOTIFY_SECRET }}'
|
- run: flutter build macos
|
||||||
npm install -g appdmg
|
- run: du -sh build/macos/Build/Products/Release/spotube.app
|
||||||
dart pub global activate melos
|
- run: npm install -g appdmg
|
||||||
cd build/flutter_distributor && melos bootstrap && cd ../..
|
# using a versioned path for compatibility in gensums
|
||||||
dart build/flutter_distributor/packages/flutter_distributor/bin/main.dart package --platform=macos --targets=dmg --skip-clean
|
- run: appdmg appdmg.json build/${{ steps.tag.outputs.tag }}/Spotube-macos-x86_64.dmg
|
||||||
- run: mv dist/${{ steps.tag.outputs.tag }}/spotube-${{ steps.tag.outputs.tag }}-macos.dmg dist/${{ steps.tag.outputs.tag }}/Spotube-macos-x86_64.dmg
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Spotube-Macos-Bundle
|
name: Spotube-Macos-Bundle
|
||||||
path: dist/${{ steps.tag.outputs.tag }}/Spotube-macos-x86_64.dmg
|
path: |
|
||||||
|
build/${{ steps.tag.outputs.tag }}/Spotube-macos-x86_64.dmg
|
||||||
|
|
||||||
publish_linux:
|
publish_linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -172,8 +167,8 @@ jobs:
|
|||||||
strip_v: true
|
strip_v: true
|
||||||
# generating checksums for all the binary
|
# generating checksums for all the binary
|
||||||
- run: |
|
- run: |
|
||||||
md5sum ./**/*.{AppImage,deb,zip,dmg,exe,nupkg,apk} > RELEASE.md5sum
|
md5sum ./**/**/*.{AppImage,deb,zip,dmg,exe,nupkg,apk} > RELEASE.md5sum
|
||||||
sha256sum build/**/*.{AppImage,deb,zip,dmg,exe,nupkg,apk} > RELEASE.sha256sum
|
sha256sum ./**/**/*.{AppImage,deb,zip,dmg,exe,nupkg,apk} > RELEASE.sha256sum
|
||||||
sed -i 's|Spotube-.*-Bundle/||' RELEASE.sha256sum RELEASE.md5sum
|
sed -i 's|Spotube-.*-Bundle/||' RELEASE.sha256sum RELEASE.md5sum
|
||||||
# Upload release binary
|
# Upload release binary
|
||||||
- uses: ncipollo/release-action@v1
|
- uses: ncipollo/release-action@v1
|
||||||
@ -184,7 +179,7 @@ jobs:
|
|||||||
omitNameDuringUpdate: true
|
omitNameDuringUpdate: true
|
||||||
omitPrereleaseDuringUpdate: true
|
omitPrereleaseDuringUpdate: true
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
artifacts: Spotube-Windows-Bundle/dist/${{ steps.tag.outputs.tag }}/*,Spotube-Macos-Bundle/dist/${{ steps.tag.outputs.tag }}/*,Spotube-Linux-Bundle/dist/${{ steps.tag.outputs.tag }}/*,RELEASE.sha256sum,RELEASE.md5sum
|
artifacts: Spotube-Windows-Bundle/dist/${{ steps.tag.outputs.tag }}/*,Spotube-Macos-Bundle/*,Spotube-Linux-Bundle/dist/${{ steps.tag.outputs.tag }}/*,RELEASE.sha256sum,RELEASE.md5sum
|
||||||
|
|
||||||
# publish_winget:
|
# publish_winget:
|
||||||
# needs: update_release
|
# needs: update_release
|
||||||
|
Loading…
Reference in New Issue
Block a user