-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCreateBuild.sh
executable file
·65 lines (45 loc) · 1.77 KB
/
CreateBuild.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
59
60
61
62
63
64
65
# DropEFI
# (c) Copyright 2024 chris1111, All Right Reserved.
# This will create a Apple Bundle App DropEFI
# Dependencies: osacompile
PARENTDIR=$(dirname "$0")
cd "$PARENTDIR"
# Declare some VARS
find . -name '.DS_Store' -type f -delete
APP_NAME="DropEFI.app"
SOURCE_SCRIPT="./MountEFI/DropEFI.applescript"
rm -rf "$APP_NAME"
echo "= = = = = = = = = = = = = = = = = = = = = = = = = "
echo "DropEFI"
echo "= = = = = = = = = = = = = = = = = = = = = = = = = "
# Create the dir structure
/usr/bin/osacompile -o "$APP_NAME" "$SOURCE_SCRIPT"
# Included files structure
cp -rp ./MountEFI/Info.plist "$APP_NAME"/Contents/
cp -rp ./MountEFI/MacOS "$APP_NAME"/Contents/
cp -rp ./MountEFI/PkgInfo "$APP_NAME"/Contents/
cp -rp ./MountEFI/Frameworks "$APP_NAME"/Contents/
cp -rp ./MountEFI/Base.lproj "$APP_NAME"/Contents/Resources/
cp -rp ./MountEFI/Credits.html "$APP_NAME"/Contents/Resources/
cp -rp ./MountEFI/Assets.car "$APP_NAME"/Contents/Resources/
cp -rp ./MountEFI/description.rtfd "$APP_NAME"/Contents/Resources/
cp -rp ./MountEFI/en.lproj "$APP_NAME"/Contents/Resources/
cp -rp ./MountEFI/Scripts/Helper-EFI "$APP_NAME"/Contents/Resources/Scripts/
cp -rp ./MountEFI/Scripts/main.recover.rtf "$APP_NAME"/Contents/Resources/Scripts/
cp -rp ./MountEFI/DocumentIcon.png "$APP_NAME"/Contents/Resources/
cp -rp ./MountEFI/Badge.tiff "$APP_NAME"/Contents/Resources/
cp -rp ./MountEFI/droplet.tiff "$APP_NAME"/Contents/Resources/
cp -rp ./MountEFI/applet.icns "$APP_NAME"/Contents/Resources/
cp -rp ./MountEFI/droplet.icns "$APP_NAME"/Contents/Resources/
# Zip app
Sleep 1
zip -r "$APP_NAME".zip "$APP_NAME"
Sleep 1
rm -rf "$APP_NAME"
unzip "$APP_NAME".zip
Sleep 1
# Remove app
rm -rf ./"$APP_NAME".zip
cp -rp "$APP_NAME" ./build/Release/"$APP_NAME"/Contents/Resources/
Sleep 1
rm -rf "$APP_NAME"