forked from KRTirtho/spotube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (48 loc) · 2.15 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
INNO_VERSION=6.2.0
TEMP_DIR=/tmp/spotube-tar
USR_SHARE=deb-struct/usr/share
BUNDLE_DIR=build/linux/x64/release/bundle
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:
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}-x86_64.tar.xz -C $(TEMP_DIR) .\
&& rm -rf $(TEMP_DIR)
appimage:
appimage-builder --recipe AppImageBuilder.yml\
&& mv Spotube-*-x86_64.AppImage build
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 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