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
f4c90796
Commit
f4c90796
authored
Jun 05, 2020
by
Roman Haefeli
Browse files
make script quiet
parent
5235c5c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
build.sh
View file @
f4c90796
...
@@ -47,7 +47,7 @@ function fail {
...
@@ -47,7 +47,7 @@ function fail {
cd
"
${
work_dir
}
"
cd
"
${
work_dir
}
"
# install pd
# install pd
tar
x
v
f
"
${
pd_archive_file
}
"
||
fail
tar
xf
"
${
pd_archive_file
}
"
||
fail
mv
Pd-
*
.app
"
${
app_bundle_name
}
"
||
fail
mv
Pd-
*
.app
"
${
app_bundle_name
}
"
||
fail
# install externals
# install externals
...
@@ -55,11 +55,10 @@ function fail {
...
@@ -55,11 +55,10 @@ function fail {
cd
${
app_bundle_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
"
curl
-s
-o
file
"
${
url
}
"
||
fail
curl
-q
-o
file
"
${
url
}
"
||
fail
if
file file |
grep
' Zip archive data'
>
/dev/null
if
file file |
grep
' Zip archive data'
>
/dev/null
then
then
unzip file
||
fail
unzip
-q
file
||
fail
fi
fi
if
file file |
grep
'gzip compressed data'
>
/dev/null
if
file file |
grep
'gzip compressed data'
>
/dev/null
then
then
...
@@ -72,14 +71,14 @@ function fail {
...
@@ -72,14 +71,14 @@ function fail {
# install netpd
# install netpd
(
(
cd
${
app_bundle_name
}
/Contents/Resources
cd
${
app_bundle_name
}
/Contents/Resources
curl
-
q
-o
file
"
${
netpd_bundle_url
}
"
||
fail
curl
-
s
-o
file
"
${
netpd_bundle_url
}
"
||
fail
unzip file
&&
rm
file
||
fail
unzip
-q
file
&&
rm
file
||
fail
)
||
fail
)
||
fail
)
||
fail
)
||
fail
# apply patch to load netpd at start
# apply patch to load netpd at start
patch
${
work_dir
}
/
${
app_bundle_name
}
/Contents/Resources/tcl/pd-gui.tcl < files/pd-gui.tcl.patch
||
fail
patch
-s
${
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
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
||
fail
sed
-f
<
(
echo
"
${
info_plist_replacements
}
"
)
files/Info.plist
>
${
work_dir
}
/
${
app_bundle_name
}
/Contents/Info.plist
||
fail
...
@@ -90,5 +89,4 @@ function fail {
...
@@ -90,5 +89,4 @@ function fail {
)
||
fail
)
||
fail
rm
-r
"
${
work_dir
}
"
rm
-r
"
${
work_dir
}
"
echo
"Done!"
)
)
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