-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.obs
24 lines (20 loc) · 905 Bytes
/
Makefile.obs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
SUBDIRS = src
/usr/bin/osc:
sudo zypper in osc obs-service-appimage obs-service-download_url
setup: /usr/bin/osc
if [ ! -e build ] ; then osc co home:dmulder:YaST:AppImage admin-tools -o build; fi
pushd build && osc up; popd
cp admin-tools.appdata.xml build/
cp src/clients/admin-tools.py build/
cp appimage.yml build/
cp obs_service build/_service
build: setup
pushd build; osc build AppImage x86_64 appimage.yml --noverify; popd
cp /var/tmp/build-root/AppImage-x86_64/usr/src/packages/OTHER/admin-tools-*-x86_64.AppImage admin-tools-x86_64.AppImage
rebuild: admin-tools-x86_64.AppImage
rm -rf squashfs-root/ >/dev/null 2>&1 || echo
./admin-tools-x86_64.AppImage --appimage-extract >/dev/null 2>&1
rm squashfs-root/usr/share/metainfo/admin-tools.appdata.xml || echo
cp src/clients/admin-tools.py squashfs-root/usr/share/YaST2/clients/
appimagetool squashfs-root/
rm -rf squashfs-root/