mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
Windows build configuration fix
This commit is contained in:
parent
e0b8d88ca6
commit
2f05e3f8d9
45
.github/workflows/feature-audioplayers.yaml
vendored
45
.github/workflows/feature-audioplayers.yaml
vendored
@ -29,20 +29,41 @@ jobs:
|
|||||||
build_windows:
|
build_windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
- name: Get latest tag
|
||||||
|
id: tag
|
||||||
|
uses: dawidd6/action-get-tag@v1
|
||||||
|
with:
|
||||||
|
# Optionally strip `v` prefix
|
||||||
|
strip_v: true
|
||||||
|
# Replace Version in files
|
||||||
|
- run: |
|
||||||
|
choco install sed make -y
|
||||||
|
sed -i "s/%{{SPOTUBE_VERSION}}%/${{ steps.tag.outputs.tag }}/" windows/runner/Runner.rc
|
||||||
|
sed -i "s/%{{SPOTUBE_VERSION}}%/${{ steps.tag.outputs.tag }}/" choco-struct/tools/VERIFICATION.txt
|
||||||
|
sed -i "s/%{{SPOTUBE_VERSION}}%/${{ steps.tag.outputs.tag }}/" choco-struct/spotube.nuspec
|
||||||
|
|
||||||
|
# Build Windows Executable
|
||||||
- uses: subosito/flutter-action@v2.2.0
|
- uses: subosito/flutter-action@v2.2.0
|
||||||
with:
|
with:
|
||||||
cache: true
|
cache: true
|
||||||
- run: flutter config --enable-windows-desktop
|
- run: |
|
||||||
- run: flutter pub get
|
flutter config --enable-windows-desktop
|
||||||
- run: dart bin/create-secrets.dart '${{ secrets.LYRICS_SECRET }}' '${{ secrets.SPOTIFY_SECRET }}'
|
flutter pub get
|
||||||
- run: flutter build windows
|
dart bin/create-secrets.dart '${{ secrets.LYRICS_SECRET }}' '${{ secrets.SPOTIFY_SECRET }}'
|
||||||
- run: ls build/windows/runner/Release
|
dart pub global activate flutter_distributor
|
||||||
- run: choco install make -y
|
make innoinstall
|
||||||
- run: make innoinstall
|
flutter_distributor package --platform=windows --targets=exe --skip-clean
|
||||||
- run: make inno
|
|
||||||
- uses: actions/upload-artifact@v2
|
# Create Chocolatey Package
|
||||||
|
# setting the sha256 hash for new bundle
|
||||||
|
- run: |
|
||||||
|
mv dist/**/spotube-*-windows-setup.exe dist/Spotube-windows-x86_64-setup.exe
|
||||||
|
Set-Variable -Name HASH -Value (Get-FileHash dist\Spotube-windows-x86_64-setup.exe).Hash
|
||||||
|
sed -i "s/%{{WIN_SHA256}}%/$HASH/" choco-struct/tools/VERIFICATION.txt
|
||||||
|
|
||||||
|
# Upload artifacts
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Spotube-Windows-Bundle
|
name: Spotube-Windows-Bundle
|
||||||
path: |
|
path: dist/
|
||||||
build/installer/Spotube-windows-x86_64-setup.exe
|
|
Loading…
Reference in New Issue
Block a user