mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-09 00:37:31 +00:00
cd: add other package formats in circle ci build
This commit is contained in:
parent
ce8f734b58
commit
1d9638a20b
@ -9,7 +9,7 @@ jobs:
|
|||||||
- checkout
|
- checkout
|
||||||
- run: |
|
- run: |
|
||||||
sudo apt-get update -y &&
|
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
|
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
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
git clone https://github.com/flutter/flutter.git
|
git clone https://github.com/flutter/flutter.git
|
||||||
@ -18,10 +18,15 @@ jobs:
|
|||||||
flutter precache
|
flutter precache
|
||||||
flutter doctor -v
|
flutter doctor -v
|
||||||
|
|
||||||
|
- persist_to_workspace:
|
||||||
|
root: flutter
|
||||||
|
paths:
|
||||||
|
- .
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
echo "SPOTIFY_SECRETS=${SPOTIFY_SECRETS}" >> .env
|
echo "SPOTIFY_SECRETS=${SPOTIFY_SECRETS}" >> .env
|
||||||
echo "SUPABASE_URL=" >> .env
|
echo "SUPABASE_URL=${SUPABASE_URL}" >> .env
|
||||||
echo "SUPABASE_API_KEY=" >> .env
|
echo "SUPABASE_API_KEY=${SUPABASE_API_KEY}" >> .env
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
export PATH="$PATH:`pwd`/flutter/bin"
|
export PATH="$PATH:`pwd`/flutter/bin"
|
||||||
@ -31,17 +36,23 @@ jobs:
|
|||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
export PATH="$PATH:`pwd`/flutter/bin"
|
export PATH="$PATH:`pwd`/flutter/bin"
|
||||||
flutter build linux --target-platform=linux-arm64
|
dart pub global activate flutter_distributor
|
||||||
mkdir -p /tmp/spotube-tar
|
alias dpkg-deb="dpkg-deb --Zxz"
|
||||||
cp -r build/linux/arm64/release/bundle/* /tmp/spotube-tar
|
dart run flutter_distributor package --platform=linux --targets=deb
|
||||||
cp linux/spotube.desktop /tmp/spotube-tar
|
dart run flutter_distributor package --platform=linux --targets=appimage
|
||||||
cp assets/spotube-logo.png /tmp/spotube-tar
|
dart run flutter_distributor package --platform=linux --targets=rpm
|
||||||
cp linux/com.github.KRTirtho.Spotube.appdata.xml /tmp/spotube-tar
|
make tar VERSION=nightly ARCH=arm64 PKG_ARCH=aaarch64
|
||||||
tar -cJf build/spotube-linux-3.1.1-aarch64.tar.xz -C /tmp/spotube-tar .
|
|
||||||
rm -rf /tmp/spotube-tar
|
- run: |
|
||||||
|
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: build/spotube-linux-3.1.1-aarch64.tar.xz
|
path: Spotube-linux-aarch64.zip
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
build_flutter_for_arm_workflow:
|
build_flutter_for_arm_workflow:
|
||||||
|
|||||||
4
.github/workflows/spotube-release-binary.yml
vendored
4
.github/workflows/spotube-release-binary.yml
vendored
@ -164,11 +164,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Create tar.xz (stable)
|
- name: Create tar.xz (stable)
|
||||||
if: ${{ inputs.channel == 'stable' }}
|
if: ${{ inputs.channel == 'stable' }}
|
||||||
run: make tar VERSION=${{ env.BUILD_VERSION }}
|
run: make tar VERSION=${{ env.BUILD_VERSION }} ARCH=x64 PKG_ARCH=x86_64
|
||||||
|
|
||||||
- name: Create tar.xz (nightly)
|
- name: Create tar.xz (nightly)
|
||||||
if: ${{ inputs.channel == 'nightly' }}
|
if: ${{ inputs.channel == 'nightly' }}
|
||||||
run: make tar VERSION=nightly
|
run: make tar VERSION=nightly ARCH=x64 PKG_ARCH=x86_64
|
||||||
|
|
||||||
- name: Move Files to dist
|
- name: Move Files to dist
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
17
Makefile
17
Makefile
@ -1,17 +1,8 @@
|
|||||||
INNO_VERSION=6.2.0
|
INNO_VERSION=6.2.0
|
||||||
TEMP_DIR=/tmp/spotube-tar
|
TEMP_DIR=/tmp/spotube-tar
|
||||||
USR_SHARE=deb-struct/usr/share
|
USR_SHARE=deb-struct/usr/share
|
||||||
BUNDLE_DIR=build/linux/x64/release/bundle
|
BUNDLE_DIR=build/linux/${ARCH}/release/bundle
|
||||||
MIRRORLIST=${PWD}/build/mirrorlist
|
MIRRORLIST=${PWD}/build/mirrorlist
|
||||||
deb:
|
|
||||||
mkdir -p ${USR_SHARE}/spotube\
|
|
||||||
&& mkdir -p $(USR_SHARE)/applications $(USR_SHARE)/icons/spotube $(USR_SHARE)/spotube $(USR_SHARE)/appdata\
|
|
||||||
&& cp -r $(BUNDLE_DIR)/* $(USR_SHARE)/spotube\
|
|
||||||
&& cp linux/spotube.desktop $(USR_SHARE)/applications/\
|
|
||||||
&& cp linux/com.github.KRTirtho.Spotube.appdata.xml $(USR_SHARE)/appdata/spotube.appdata.xml\
|
|
||||||
&& cp assets/spotube-logo.png $(USR_SHARE)/icons/spotube\
|
|
||||||
&& sed -i 's|com.github.KRTirtho.Spotube|spotube|' $(USR_SHARE)/appdata/spotube.appdata.xml\
|
|
||||||
&& dpkg-deb -b deb-struct/ build/Spotube-linux-x86_64.deb
|
|
||||||
|
|
||||||
tar:
|
tar:
|
||||||
mkdir -p $(TEMP_DIR)\
|
mkdir -p $(TEMP_DIR)\
|
||||||
@ -19,13 +10,9 @@ tar:
|
|||||||
&& cp linux/spotube.desktop $(TEMP_DIR)\
|
&& cp linux/spotube.desktop $(TEMP_DIR)\
|
||||||
&& cp assets/spotube-logo.png $(TEMP_DIR)\
|
&& cp assets/spotube-logo.png $(TEMP_DIR)\
|
||||||
&& cp linux/com.github.KRTirtho.Spotube.appdata.xml $(TEMP_DIR)\
|
&& cp linux/com.github.KRTirtho.Spotube.appdata.xml $(TEMP_DIR)\
|
||||||
&& tar -cJf build/spotube-linux-${VERSION}-x86_64.tar.xz -C $(TEMP_DIR) .\
|
&& tar -cJf build/spotube-linux-${VERSION}-${PKG_ARCH}.tar.xz -C $(TEMP_DIR) .\
|
||||||
&& rm -rf $(TEMP_DIR)
|
&& rm -rf $(TEMP_DIR)
|
||||||
|
|
||||||
appimage:
|
|
||||||
appimage-builder --recipe AppImageBuilder.yml\
|
|
||||||
&& mv Spotube-*-x86_64.AppImage build
|
|
||||||
|
|
||||||
aursrcinfo:
|
aursrcinfo:
|
||||||
docker run -e EXPORT_SRC=1 -v ${PWD}/aur-struct:/pkg -v ${MIRRORLIST}:/etc/pacman.d/mirrorlist:ro whynothugo/makepkg
|
docker run -e EXPORT_SRC=1 -v ${PWD}/aur-struct:/pkg -v ${MIRRORLIST}:/etc/pacman.d/mirrorlist:ro whynothugo/makepkg
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user