This repository has been archived by the owner on Aug 19, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
54 lines (46 loc) · 2.24 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
INNO_VERSION=6.2.0
TEMP_DIR=/tmp/argoninstaller-tar
USR_SHARE=deb-struct/usr/share
BUNDLE_DIR=build/linux/x64/release/bundle
MIRRORLIST=${PWD}/build/mirrorlist
deb:
mkdir -p ${USR_SHARE}/argoninstaller\
&& mkdir -p $(USR_SHARE)/applications $(USR_SHARE)/icons/argoninstaller $(USR_SHARE)/argoninstaller $(USR_SHARE)/appdata\
&& cp -r $(BUNDLE_DIR)/* $(USR_SHARE)/argoninstaller\
&& cp linux/argoninstaller.desktop $(USR_SHARE)/applications/\
&& cp linux/com.github.Tricked-dev.ArgonInstaller.appdata.xml $(USR_SHARE)/appdata/argoninstaller.appdata.xml\
&& cp assets/argoninstaller-logo.png $(USR_SHARE)/icons/argoninstaller\
&& sed -i 's|com.github.Tricked-dev.ArgonInstaller|argoninstaller|' $(USR_SHARE)/appdata/argoninstaller.appdata.xml\
&& dpkg-deb -b deb-struct/ build/ArgonInstaller-linux-x86_64.deb
tar:
mkdir -p $(TEMP_DIR)\
&& cp -r $(BUNDLE_DIR)/* $(TEMP_DIR)\
&& cp linux/argoninstaller.desktop $(TEMP_DIR)\
&& cp assets/argoninstaller-logo.png $(TEMP_DIR)\
&& cp linux/com.github.Tricked-dev.ArgonInstaller.appdata.xml $(TEMP_DIR)\
&& tar -cJf build/ArgonInstaller-linux-x86_64.tar.xz -C $(TEMP_DIR) .\
&& rm -rf $(TEMP_DIR)
appimage:
appimage-builder --recipe AppImageBuilder.yml\
&& mv ArgonInstaller-*-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/argoninstaller\
&& git clone ssh://[email protected]/argoninstaller-bin.git build/argoninstaller\
&& cp aur-struct/PKGBUILD aur-struct/.SRCINFO build/argoninstaller\
&& cd build/argoninstaller\
&& 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 build\installer\ArgonInstaller-windows-x86_64-setup.exe choco-struct\tools
powershell choco pack .\choco-struct\argoninstaller.nuspec --outputdirectory build
gensums:
sh -c scripts/gensums.sh