Skip to content

Commit

Permalink
Merge branch 'KRTirtho:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrovette69 authored Sep 12, 2024
2 parents 54dee3d + 9b02412 commit 3992357
Show file tree
Hide file tree
Showing 420 changed files with 22,320 additions and 8,329 deletions.
177 changes: 0 additions & 177 deletions .circleci/config.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
build
dist
.dart_tool
.idea
.github
.git
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ ENABLE_UPDATE_CHECK=

LASTFM_API_KEY=
LASTFM_API_SECRET=

# Release channel. Can be: nightly, stable
RELEASE_CHANNEL=
2 changes: 1 addition & 1 deletion .fvm/fvm_config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"flutterSdkVersion": "3.19.1",
"flutterSdkVersion": "3.22.3",
"flavors": {}
}
25 changes: 25 additions & 0 deletions .github/Dockerfile
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" ]
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ body:
description: Where did you install Spotube from?
multiple: true
options:
- "Website (spotube.netlify.app) or (spotube.krtirtho.dev)"
- "Website (spotube.krtirtho.dev)"
- "GitHub Releases (Binary)"
- "GitHub Actions (Nightly Binary)"
- "Play Store (Android)"
Expand All @@ -77,4 +77,4 @@ body:
description: If you are a developer and want to work on this issue yourself, you can check this box and wait for maintainer response. We welcome contributions!
options:
- label: I'm ready to work on this issue!
required: false
required: false
2 changes: 1 addition & 1 deletion .github/workflows/pr-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:

env:
FLUTTER_VERSION: '3.19.5'
FLUTTER_VERSION: 3.22.2

jobs:
lint:
Expand Down
39 changes: 35 additions & 4 deletions .github/workflows/spotube-publish-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Loading

0 comments on commit 3992357

Please sign in to comment.