mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00

* fix: certificate error by using custom ssl certificate * Cd/docker linux ar (#1468) * cd: use docker buildx * cd: use linux host for linux arm instead of macos m1 m1 doesn't support nested virtualization. (Apple truly sucks) * cd: don't specify arch in Dockerfile * cd: use custom Dockerfile from ubuntu instead of flutter image * cd: add setup java for android * cd: add flutter distributor pre-built docker image for arm * cd: save me from this cursed arm build * cd: ?? * cd: ?? * cd: use docker build * fix: windows SSL Exception for Signing in * refactor: extract update checker as a basic function instead of a hook
27 lines
641 B
Docker
27 lines
641 B
Docker
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 &&\
|
|
flutter config --enable-linux-desktop &&\
|
|
flutter pub get &&\
|
|
dart run build_runner build --delete-conflicting-outputs
|
|
|
|
RUN alias dpkg-deb="dpkg-deb --Zxz" &&\
|
|
flutter_distributor package --platform=linux --targets=deb
|
|
|
|
|
|
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" ] |