-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
diffusion_config.sh
60 lines (46 loc) · 972 Bytes
/
diffusion_config.sh
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
# Diffusion Installer Config
# osm0sis @ xda-developers
INST_NAME="ZipSigner Installer Script";
AUTH_NAME="osm0sis @ xda-developers";
USE_ARCH=false
USE_ZIP_OPTS=true
custom_setup() {
return # stub
}
custom_zip_opts() {
return # stub
}
custom_target() {
return # stub
}
custom_install() {
ui_print " ";
set_perm 0 0 755 $BIN/zip*;
set_perm 0 0 644 $BIN/zipsigner*.jar;
if $BIN/zip-arm64 -v >/dev/null 2>&1; then
ui_print "Installing (arm64) to $BIN ...";
mv -f $BIN/zip-arm64 $BIN/zip;
mv -f $BIN/zipalign-arm64 $BIN/zipalign;
else
ui_print "Installing (arm) to $BIN ...";
mv -f $BIN/zip-arm $BIN/zip;
mv -f $BIN/zipalign-arm $BIN/zipalign;
fi;
rm -f $BIN/zip-arm* $BIN/zipalign-arm*;
}
custom_postinstall() {
return # stub
}
custom_uninstall() {
return # stub
}
custom_postuninstall() {
return # stub
}
custom_cleanup() {
return # stub
}
custom_exitmsg() {
return # stub
}
# additional custom functions