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
82438b69
Commit
82438b69
authored
Mar 18, 2021
by
Roman Haefeli
Browse files
use git to download netpd; detect version from meta file
parent
bdec88b9
Changes
1
Show whitespace changes
Inline
Side-by-side
build_macos.sh
View file @
82438b69
#!/bin/bash
app_name
=
"netpd"
app_version
=
"2.3.0"
app_bundle_name
=
"
${
app_name
}
-
${
app_version
}
.app"
package_version
=
$(
date
+%Y-%m-%d
)
src_url
=
"https://github.com/reduzent/netpd"
# Pd
pd_archive_file
=
~/Downloads/pd-0.51-4.unsigned.mac.tar.gz
...
...
@@ -18,12 +17,26 @@ ext_urls+=("http://puredata.info/Members/rdz/software/osc/0.2~git20151118/osc-v0
ext_urls+
=(
"http://puredata.info/Members/rdz/software/slip/0.1~git20151118/slip-v0.1~git20151118-(Darwin-i386-32)(Darwin-x86_64-32)-externals.tar.gz"
)
ext_urls+
=(
"http://puredata.info/Members/zmoelnigbot/software/zexy/2.3.1/zexy%5Bv2.3.1%5D(Darwin-amd64-32)(Linux-amd64-32)(Linux-arm64-32)(Linux-armv7-32)(Linux-i386-32)(Windows-amd64-32)(Windows-i386-32).dek"
)
# netpd bundle
netpd_bundle_url
=
"https://www.netpd.org/~roman/netpd-plus-instruments-beta.zip"
# workdir
work_dir
=
workdir
function
fail
{
echo
"abort due some error"
exit
1
}
# get netpd and extract version
(
cd
"
$(
dirname
"
$0
"
)
"
mkdir
-p
"
${
work_dir
}
"
cd
"
${
work_dir
}
"
git clone
--recursive
${
src_url
}
||
fail
)
||
fail
app_version
=
$(
sed
-n
's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p'
"
$(
dirname
$0
)
/
${
work_dir
}
/netpd/includes/netpd-meta.pd"
)
||
fail
app_bundle_name
=
"
${
app_name
}
-
${
app_version
}
.app"
info_plist_replacements
=
"
s/{DISPLAY_NAME}/
${
app_name
}
/
s/{EXECUTBALE}/Pd/
...
...
@@ -31,14 +44,9 @@ s/{ICON_FILES}/netpd.icns/
s/{BUNDLE_NAME}/
${
app_name
}
/
s/{BUNDLE_SHORT_VERSION}/
${
app_version
}
_
${
package_version
}
/
s/{SPOKEN_NAME}/
${
app_name
}
/
s/{BUNDLE_VERSION}/
${
netpd
_version
}
/
s/{BUNDLE_VERSION}/
${
app
_version
}
/
"
function
fail
{
echo
"abort due some error"
exit
1
}
# do stuff
(
cd
"
$(
dirname
"
$0
"
)
"
...
...
@@ -69,11 +77,8 @@ function fail {
)
||
fail
# install netpd
(
cd
${
app_bundle_name
}
/Contents/Resources
curl
--fail
-s
-o
file
"
${
netpd_bundle_url
}
"
||
fail
unzip
-q
file
&&
rm
file
||
fail
)
||
fail
rm
-rf
netpd/.git netpd/.gitignore netpd/.gitmodules netpd/instruments/.git
mv
netpd
${
app_bundle_name
}
/Contents/Resources
||
fail
)
||
fail
...
...
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