Skip to content

Commit

Permalink
cd: don't know what?
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed May 9, 2024
1 parent 1b1db3a commit 596a4b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ RUN chown -R $(whoami) /app

RUN flutter pub get

RUN make tar VERSION=${BUILD_VERSION} ARCH=arm64 PKG_ARCH=aarch64

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
Expand Down
3 changes: 2 additions & 1 deletion cli/commands/build/linux_arm.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'dart:async';

import 'package:args/command_runner.dart';
import 'package:path/path.dart';

import '../../core/env.dart';
import 'common.dart';
Expand All @@ -18,7 +19,7 @@ class LinuxArmBuildCommand extends Command with BuildCommandCommonSteps {

await shell.run(
"docker buildx build --platform=linux/arm64 "
"-f .github/Dockerfile . "
"-f ${join(cwd.path, ".github", "Dockerfile")} ${cwd.path} "
"--build-arg FLUTTER_VERSION=${CliEnv.flutterVersion} "
"--build-arg BUILD_VERSION=${CliEnv.channel == BuildChannel.nightly ? "nightly" : versionWithoutBuildNumber} "
"-t krtirtho/spotube_linux_arm:latest "
Expand Down

0 comments on commit 596a4b5

Please sign in to comment.