forked from smallstepforman/Medo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_package
executable file
·62 lines (52 loc) · 1.41 KB
/
create_package
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
58
59
60
#!/bin/sh
./clean_all
release=true jam -j16
./build_addons
resattr -o Medo Resources/Icon/Medo_icon.rsrc
addattr BEOS:APP_SIG application/x-vnd.ZenYes.Medo Medo
mkdir -p Package/apps/Medo
cp Medo Package/apps/Medo
resattr -o Package/apps/Medo/Medo Resources/Icon/Medo_icon.rsrc
addattr BEOS:APP_SIG application/x-vnd.ZenYes.Medo Package/apps/Medo/Medo
mkdir -p Package/data/deskbar/menu/Applications
(cd Package/data/deskbar/menu/Applications ; ln -s ../../../../apps/Medo/Medo . )
#AddOns
mkdir Package/apps/Medo/AddOns
cd AddOns
for d in */; do
cd ${d%/}
mkdir ../../Package/apps/Medo/AddOns/${d%/}
cp *".so" "../../Package/apps/Medo/AddOns/$d"
cp *".png" "../../Package/apps/Medo/AddOns/$d"
cp *".json" "../../Package/apps/Medo/AddOns/$d"
cd ..
done
cd ..
#Plugins
mkdir Package/apps/Medo/Plugins
cd Plugins
for f in */; do
cd ${f%/}
mkdir ../../Package/apps/Medo/Plugins/${f%/}
cp *.* "../../Package/apps/Medo/Plugins/$f"
cd ..
done
cd ..
#Languages
mkdir Package/apps/Medo/Languages
cd Languages
cp *".lang" "../Package/apps/Medo/Languages/"
cd ..
#Resources
mkdir Package/apps/Medo/Resources
mkdir Package/apps/Medo/Resources/Icon
cd Resources
cp *".png" "../Package/apps/Medo/Resources/"
cp "Icon/Medo_Logo.png" "../Package/apps/Medo/Resources/Icon"
cd ..
#Package
cp ".PackageInfo" "Package/"
cd Package
package create -b Medo-R1.0.0~Beta1-4.x86_64.hpkg
package add Medo-R1.0.0~Beta1-4.x86_64.hpkg apps data
cd ..