spotube/Makefile
Kingkor Roy Tirtho 8ca2115ef0
feat: track caching and cached track export support (#2117)
* feat: add caching support with track metadata

* feat(settings): add cache music toggle

* fix(mobile): cache dir not open-able

* feat(local folder): add cache export/clear actions and size of the folder

* chore: ios deps upgrades

* chore: upgrade lint flutter version

* chore: lint secrets causing error

* cd: invalid value for env var
2024-12-08 20:03:01 +06:00

48 lines
1.6 KiB
Makefile

INNO_VERSION=6.2.0
TEMP_DIR=/tmp/spotube-tar
USR_SHARE=deb-struct/usr/share
BUNDLE_DIR=build/linux/${ARCH}/release/bundle
MIRRORLIST=${PWD}/build/mirrorlist
tar:
mkdir -p $(TEMP_DIR)\
&& cp -r $(BUNDLE_DIR)/* $(TEMP_DIR)\
&& cp linux/spotube.desktop $(TEMP_DIR)\
&& cp assets/spotube-logo.png $(TEMP_DIR)\
&& cp linux/com.github.KRTirtho.Spotube.appdata.xml $(TEMP_DIR)\
&& tar -cJf build/spotube-linux-${VERSION}-${PKG_ARCH}.tar.xz -C $(TEMP_DIR) .\
&& rm -rf $(TEMP_DIR)
aursrcinfo:
docker run -e EXPORT_SRC=1 -v ${PWD}/aur-struct:/pkg -v ${MIRRORLIST}:/etc/pacman.d/mirrorlist:ro whynothugo/makepkg
publishaur:
echo '[Warning!]: you need SSH paired with AUR'\
&& rm -rf build/spotube\
&& git clone ssh://aur@aur.archlinux.org/spotube-bin.git build/spotube\
&& cp aur-struct/PKGBUILD aur-struct/.SRCINFO build/spotube\
&& cd build/spotube\
&& git add .\
&& git commit -m "${MSG}"\
&& git push
innoinstall:
powershell curl -o build\installer.exe http://files.jrsoftware.org/is/6/innosetup-${INNO_VERSION}.exe
powershell git clone https://github.com/DomGries/InnoDependencyInstaller.git build\inno-depend
powershell build\installer.exe /verysilent /allusers /dir=build\iscc
inno:
powershell .\build\iscc\iscc.exe scripts\windows-setup-creator.iss
choco:
powershell cp dist\Spotube-windows-x86_64-setup.exe choco-struct\tools
powershell choco pack .\choco-struct\spotube.nuspec --outputdirectory dist
apk:
mv build/app/outputs/apk/release/app-release.apk build/Spotube-android-all-arch.apk
gensums:
sh -c scripts/gensums.sh
migrate:
dart run drift_dev make-migrations