mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-10 17:07:30 +00:00
cd: fix rpm arch
This commit is contained in:
parent
8f8c90d2c5
commit
103cf48fd7
@ -7,55 +7,74 @@ jobs:
|
|||||||
resource_class: arm.medium
|
resource_class: arm.medium
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: |
|
- run:
|
||||||
sudo apt-get update -y &&
|
name: Install dependencies
|
||||||
sudo apt-get install -y tar clang cmake 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 zip rpm
|
command: |
|
||||||
|
sudo apt-get update -y
|
||||||
|
sudo apt-get install -y tar clang cmake 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 zip rpm
|
||||||
|
|
||||||
- run: |
|
- run:
|
||||||
git clone https://github.com/flutter/flutter.git
|
name: Install Flutter
|
||||||
cd flutter && git checkout stable && cd ..
|
command: |
|
||||||
export PATH="$PATH:`pwd`/flutter/bin"
|
git clone https://github.com/flutter/flutter.git
|
||||||
flutter precache
|
cd flutter && git checkout stable && cd ..
|
||||||
flutter doctor -v
|
export PATH="$PATH:`pwd`/flutter/bin"
|
||||||
|
flutter precache
|
||||||
|
flutter doctor -v
|
||||||
|
|
||||||
- run: |
|
- run:
|
||||||
wget -O appimagetool "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-aarch64.AppImage"
|
name: Install AppImageTool
|
||||||
chmod +x appimagetool
|
command: |
|
||||||
mv appimagetool flutter/bin
|
wget -O appimagetool "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-aarch64.AppImage"
|
||||||
|
chmod +x appimagetool
|
||||||
|
mv appimagetool flutter/bin
|
||||||
|
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: flutter
|
root: flutter
|
||||||
paths:
|
paths:
|
||||||
- .
|
- .
|
||||||
|
|
||||||
- run: |
|
- run:
|
||||||
echo "SPOTIFY_SECRETS=${SPOTIFY_SECRETS}" >> .env
|
name: Replace texts in files
|
||||||
echo "SUPABASE_URL=${SUPABASE_URL}" >> .env
|
command: |
|
||||||
echo "SUPABASE_API_KEY=${SUPABASE_API_KEY}" >> .env
|
echo "build_arch: arm64" >> linux/packaging/rpm/make_config.yaml
|
||||||
|
|
||||||
- run: |
|
- run:
|
||||||
export PATH="$PATH:`pwd`/flutter/bin"
|
name: Generate .env file
|
||||||
flutter config --enable-linux-desktop
|
command: |
|
||||||
flutter pub get
|
echo "SPOTIFY_SECRETS=${SPOTIFY_SECRETS}" >> .env
|
||||||
dart run build_runner build --delete-conflicting-outputs --enable-experiment=records,patterns
|
echo "SUPABASE_URL=${SUPABASE_URL}" >> .env
|
||||||
|
echo "SUPABASE_API_KEY=${SUPABASE_API_KEY}" >> .env
|
||||||
|
|
||||||
- run: |
|
- run:
|
||||||
export PATH="$PATH:`pwd`/flutter/bin"
|
name: Build secrets
|
||||||
export PATH="$PATH":"$HOME/.pub-cache/bin"
|
command: |
|
||||||
dart pub global activate flutter_distributor
|
export PATH="$PATH:`pwd`/flutter/bin"
|
||||||
alias dpkg-deb="dpkg-deb --Zxz"
|
flutter config --enable-linux-desktop
|
||||||
flutter_distributor package --platform=linux --targets=deb
|
flutter pub get
|
||||||
flutter_distributor package --platform=linux --targets=appimage
|
dart run build_runner build --delete-conflicting-outputs --enable-experiment=records,patterns
|
||||||
flutter_distributor package --platform=linux --targets=rpm
|
|
||||||
make tar VERSION=nightly ARCH=arm64 PKG_ARCH=aaarch64
|
|
||||||
|
|
||||||
- run: |
|
- run:
|
||||||
mkdir bundle
|
name: Build Flutter app
|
||||||
mv build/spotube-linux-*-aarch64.tar.xz bundle/
|
command: |
|
||||||
mv dist/**/spotube-*-linux.deb bundle/Spotube-linux-aarch64.deb
|
export PATH="$PATH:`pwd`/flutter/bin"
|
||||||
mv dist/**/spotube-*-linux.rpm bundle/Spotube-linux-aarch64.rpm
|
export PATH="$PATH":"$HOME/.pub-cache/bin"
|
||||||
mv dist/**/spotube-*-linux.AppImage bundle/Spotube-linux-aarch64.AppImage
|
dart pub global activate flutter_distributor
|
||||||
zip -r Spotube-linux-aarch64.zip bundle
|
alias dpkg-deb="dpkg-deb --Zxz"
|
||||||
|
flutter_distributor package --platform=linux --targets=deb
|
||||||
|
flutter_distributor package --platform=linux --targets=appimage
|
||||||
|
flutter_distributor package --platform=linux --targets=rpm
|
||||||
|
make tar VERSION=nightly ARCH=arm64 PKG_ARCH=aaarch64
|
||||||
|
|
||||||
|
- run:
|
||||||
|
name: Move artifacts
|
||||||
|
command: |
|
||||||
|
mkdir bundle
|
||||||
|
mv build/spotube-linux-*-aarch64.tar.xz bundle/
|
||||||
|
mv dist/**/spotube-*-linux.deb bundle/Spotube-linux-aarch64.deb
|
||||||
|
mv dist/**/spotube-*-linux.rpm bundle/Spotube-linux-aarch64.rpm
|
||||||
|
mv dist/**/spotube-*-linux.AppImage bundle/Spotube-linux-aarch64.AppImage
|
||||||
|
zip -r Spotube-linux-aarch64.zip bundle
|
||||||
|
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: Spotube-linux-aarch64.zip
|
path: Spotube-linux-aarch64.zip
|
||||||
|
|||||||
@ -26,5 +26,4 @@ generic_name: Music Streaming Application
|
|||||||
categories:
|
categories:
|
||||||
- Music
|
- Music
|
||||||
|
|
||||||
|
|
||||||
startup_notify: true
|
startup_notify: true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user