forked from KRTirtho/spotube
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'KRTirtho:master' into master
- Loading branch information
Showing
420 changed files
with
22,320 additions
and
8,329 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
build | ||
dist | ||
.dart_tool | ||
.idea | ||
.github | ||
.git |
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,4 +1,4 @@ | ||
{ | ||
"flutterSdkVersion": "3.19.1", | ||
"flutterSdkVersion": "3.22.3", | ||
"flavors": {} | ||
} |
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,25 @@ | ||
ARG FLUTTER_VERSION | ||
|
||
FROM --platform=linux/arm64 krtirtho/flutter_distributor:${FLUTTER_VERSION} | ||
|
||
ARG BUILD_VERSION | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN chown -R $(whoami) /app | ||
|
||
RUN rustup target add aarch64-unknown-linux-gnu | ||
|
||
RUN flutter pub get | ||
|
||
RUN alias dpkg-deb="dpkg-deb --Zxz" &&\ | ||
flutter_distributor package --platform=linux --targets=deb --skip-clean | ||
|
||
RUN make tar VERSION=${BUILD_VERSION} ARCH=arm64 PKG_ARCH=aarch64 | ||
|
||
RUN mv build/spotube-linux-*-aarch64.tar.xz dist/ &&\ | ||
mv dist/**/spotube-*-linux.deb dist/Spotube-linux-aarch64.deb | ||
|
||
CMD [ "sleep", "5000000" ] |
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
pull_request: | ||
|
||
env: | ||
FLUTTER_VERSION: '3.19.5' | ||
FLUTTER_VERSION: 3.22.2 | ||
|
||
jobs: | ||
lint: | ||
|
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 |
---|---|---|
|
@@ -4,18 +4,18 @@ on: | |
inputs: | ||
version: | ||
description: Version to publish (x.x.x) | ||
default: 3.1.0 | ||
default: 3.8.0 | ||
required: true | ||
dry_run: | ||
description: Dry run | ||
required: true | ||
type: boolean | ||
default: true | ||
jobs: | ||
description: Jobs to run (flathub,aur,winget,chocolatey) | ||
description: Jobs to run (flathub,aur,winget,chocolatey,playstore) | ||
required: true | ||
type: string | ||
default: "flathub,aur,winget,chocolatey" | ||
default: "flathub,aur,winget,chocolatey,playstore" | ||
|
||
jobs: | ||
flathub: | ||
|
@@ -66,7 +66,7 @@ jobs: | |
- name: Release to AUR | ||
if: ${{ !inputs.dry_run }} | ||
uses: KSXGitHub/[email protected].1 | ||
uses: KSXGitHub/[email protected].2 | ||
with: | ||
pkgname: spotube-bin | ||
pkgbuild: aur-struct/PKGBUILD | ||
|
@@ -104,3 +104,34 @@ jobs: | |
- name: Publish to Chocolatey Repository | ||
if: ${{ !inputs.dry_run }} | ||
run: choco push Spotube-windows-x86_64.nupkg --source https://push.chocolatey.org/ | ||
|
||
playstore: | ||
runs-on: ubuntu-latest | ||
if: contains(inputs.jobs, 'playstore') | ||
steps: | ||
- name: Tagname (workflow dispatch) | ||
run: echo 'TAG_NAME=${{inputs.version}}' >> $GITHUB_ENV | ||
|
||
- uses: robinraju/release-downloader@main | ||
with: | ||
repository: KRTirtho/spotube | ||
tag: v${{ env.TAG_NAME }} | ||
tarBall: false | ||
zipBall: false | ||
out-file-path: dist | ||
fileName: "Spotube-playstore-all-arch.aab" | ||
|
||
- name: Create service-account.json | ||
run: | | ||
echo "${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_BASE64 }}" | base64 -d > service-account.json | ||
- name: Upload Android Release to Play Store | ||
if: ${{!inputs.dry_run}} | ||
uses: r0adkll/upload-google-play@v1 | ||
with: | ||
serviceAccountJson: ./service-account.json | ||
releaseFiles: ./dist/Spotube-playstore-all-arch.aab | ||
packageName: oss.krtirtho.spotube | ||
track: production | ||
status: draft | ||
releaseName: ${{ env.TAG_NAME }} |
Oops, something went wrong.