Skip to content

Commit

Permalink
Merge pull request #1576 from KRTirtho/dev
Browse files Browse the repository at this point in the history
Release v3.7.1
  • Loading branch information
KRTirtho authored Jun 6, 2024
2 parents a9c78b7 + e223a10 commit 491c1b9
Show file tree
Hide file tree
Showing 218 changed files with 8,111 additions and 2,913 deletions.
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.19.6",
"flavors": {}
}
23 changes: 23 additions & 0 deletions .github/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
ARG FLUTTER_VERSION

FROM --platform=linux/arm64 krtirtho/flutter_distributor_arm64:${FLUTTER_VERSION}

ARG BUILD_VERSION

WORKDIR /app

COPY . .

RUN chown -R $(whoami) /app

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" ]
23 changes: 23 additions & 0 deletions .github/Dockerfile.flutter_distributor
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM --platform=linux/arm64 ubuntu:22.04

ARG FLUTTER_VERSION

RUN apt-get clean &&\
apt-get update &&\
apt-get install -y bash curl file git unzip xz-utils zip libglu1-mesa cmake tar clang ninja-build pkg-config libgtk-3-dev make python3-pip python3-setuptools desktop-file-utils libgdk-pixbuf2.0-dev fakeroot strace fuse libunwind-dev locate patchelf gir1.2-appindicator3-0.1 libappindicator3-1 libappindicator3-dev libsecret-1-0 libjsoncpp25 libsecret-1-dev libjsoncpp-dev libnotify-bin libnotify-dev mpv libmpv-dev rpm && \
rm -rf /var/lib/apt/lists/*

WORKDIR /home/flutter

RUN git clone https://github.com/flutter/flutter.git -b ${FLUTTER_VERSION} --single-branch flutter-sdk

RUN flutter-sdk/bin/flutter precache

RUN flutter-sdk/bin/flutter config --no-analytics

ENV PATH="$PATH:/home/flutter/flutter-sdk/bin"
ENV PATH="$PATH:/home/flutter/flutter-sdk/bin/cache/dart-sdk/bin"
ENV PATH="$PATH:/home/flutter/.pub-cache/bin"
ENV PUB_CACHE="/home/flutter/.pub-cache"

RUN dart pub global activate flutter_distributor
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.19.6'

jobs:
lint:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spotube-publish-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
inputs:
version:
description: Version to publish (x.x.x)
default: 3.1.0
default: 3.7.1
required: true
dry_run:
description: Dry run
Expand Down
Loading

0 comments on commit 491c1b9

Please sign in to comment.