Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Roman Haefeli
netpd-app-builder
Commits
e4808867
Commit
e4808867
authored
Jun 05, 2020
by
Roman Haefeli
Browse files
attempt to construct a Info.plist file
parent
3015862d
Changes
2
Hide whitespace changes
Inline
Side-by-side
build.sh
View file @
e4808867
#!/bin/bash
#!/bin/bash
version
=
"2.2"
app_name
=
"netpd"
app_name
=
"netpd-
${
version
}
.app"
app_version
=
"2.2"
app_bundle_name
=
"
${
app_name
}
-
${
app_version
}
.app"
package_version
=
$(
date
+%Y-%m-%d
)
# Pd
# Pd
pd_archive_file
=
~/Downloads/pd-0.51-0test3.mac.tar.gz
pd_archive_file
=
~/Downloads/pd-0.51-0test3.mac.tar.gz
...
@@ -22,6 +24,16 @@ netpd_bundle_url="https://www.netpd.org/~roman/netpd-plus-instruments.zip"
...
@@ -22,6 +24,16 @@ netpd_bundle_url="https://www.netpd.org/~roman/netpd-plus-instruments.zip"
# workdir
# workdir
work_dir
=
workdir
work_dir
=
workdir
info_plist_replacements
=
"
s/{DISPLAY_NAME}/
${
app_name
}
/
s/{EXECUTBALE}/
${
app_name
}
/
s/{ICON_FILES}/netpd.icns/
s/{BUNDLE_NAME}/
${
app_name
}
/
s/{BUNDLE_SHORT_VERSION}/
${
netpd_version
}
(
${
package_version
}
)/
s/{SPOKEN_NAME}/
${
app_name
}
/
s/{BUNDLE_VERSION}/
${
netpd_version
}
/
"
function
fail
{
function
fail
{
echo
"abort due some error"
echo
"abort due some error"
exit
1
exit
1
...
@@ -34,11 +46,11 @@ function fail {
...
@@ -34,11 +46,11 @@ function fail {
# install pd
# install pd
tar
xvf
"
${
pd_archive_file
}
"
||
fail
tar
xvf
"
${
pd_archive_file
}
"
||
fail
mv
Pd-
*
.app
"
${
app_name
}
"
||
fail
mv
Pd-
*
.app
"
${
app_
bundle_
name
}
"
||
fail
# install externals
# install externals
(
(
cd
${
app_name
}
/Contents/Resources/extra
cd
${
app_
bundle_
name
}
/Contents/Resources/extra
for
url
in
${
ext_urls
[@]
}
for
url
in
${
ext_urls
[@]
}
do
do
echo
"downloading
$url
"
echo
"downloading
$url
"
...
@@ -57,7 +69,7 @@ function fail {
...
@@ -57,7 +69,7 @@ function fail {
# install netpd
# install netpd
(
(
cd
${
app_name
}
/Contents/Resources
cd
${
app_
bundle_
name
}
/Contents/Resources
curl
-o
file
"
${
netpd_bundle_url
}
"
||
fail
curl
-o
file
"
${
netpd_bundle_url
}
"
||
fail
unzip file
&&
rm
file
||
fail
unzip file
&&
rm
file
||
fail
)
)
...
@@ -65,6 +77,9 @@ function fail {
...
@@ -65,6 +77,9 @@ function fail {
)
)
# apply patch to load netpd at start
# apply patch to load netpd at start
patch
${
work_dir
}
/
${
app_name
}
/Contents/Resources/tcl/pd-gui.tcl < files/pd-gui.tcl.patch
patch
${
work_dir
}
/
${
app_bundle_name
}
/Contents/Resources/tcl/pd-gui.tcl < files/pd-gui.tcl.patch
||
fail
cp
files/netpd.icns
${
work_dir
}
/
${
app_bundle_name
}
/Contents/Resources/
||
fail
sed
-f
<
(
echo
"
${
info_plist_replacements
}
"
)
files/Info.plist
>
${
work_dir
}
/
${
app_bundle_name
}
/Contents/Info.plist
echo
"Done!"
files/Info.plist
0 → 100644
View file @
e4808867
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<dict>
<key>
ATSApplicationFontsPath
</key>
<string>
font
</string>
<key>
CFBundleDevelopmentRegion
</key>
<string>
English
</string>
<key>
CFBundleDisplayName
</key>
<string>
{DISPLAY_NAME}
</string>
<key>
CFBundleExecutable
</key>
<string>
{EXECUTBALE}
</string>
<key>
CFBundleIconFile
</key>
<string>
{ICON_FILES}
</string>
<key>
CFBundleIdentifier
</key>
<string>
org.netpd.pd-gui
</string>
<key>
CFBundleInfoDictionaryVersion
</key>
<string>
6.0
</string>
<key>
CFBundleName
</key>
<string>
{BUNDLE_NAME}
</string>
<key>
CFBundlePackageType
</key>
<string>
APPL
</string>
<key>
CFBundleShortVersionString
</key>
<string>
{BUNDLE_SHORT_VERSION}
</string>
<key>
CFBundleSignature
</key>
<string>
????
</string>
<key>
CFBundleSpokenName
</key>
<string>
{SPOKEN_NAME}
</string>
<key>
CFBundleVersion
</key>
<string>
{BUNDLE_VERSION}
</string>
<key>
NSHighResolutionCapable
</key>
<true/>
</dict>
</plist>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment