Skip to content

Commit 3fd42d3

Browse files
committed
oF script / linux downloader
1 parent 0486e20 commit 3fd42d3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

scripts/dev/download_libs.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ if [ "$ARCH" == "" ]; then
170170
if [ "$ARCH" == "x86_64" ]; then
171171
ARCH=64
172172
elif [ "$ARCH" == "arm64" ]; then
173-
ARCH=64 # for now
173+
ARCH=arm64
174174
elif [ "$ARCH" == "aarch64" ]; then
175-
ARCH=64 # for now
175+
ARCH=arm64
176176
elif [ "$ARCH" == "i686" ] || [ "$ARCH" == "i386" ]; then
177177
echo "32bit linux is not officially supported anymore but compiling the libraries using the build script in apothecary/scripts should compile all the dependencies without problem"
178178
exit 1
@@ -215,7 +215,7 @@ if [ "$PLATFORM" == "linux" ]; then
215215
elif [ "$ARCH" == "arm64" ]; then
216216
OPT="_${GCC_VERSION}"
217217
elif [ "$ARCH" == "aarch64" ]; then
218-
OPT=""
218+
OPT="_${GCC_VERSION}"
219219
elif [ "$ARCH" == "armv8l" ]; then
220220
OPT=""
221221
elif [ "$ARCH" == "armv7l" ]; then

scripts/of.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ autoDetectOS() {
3030
;;
3131
esac
3232
else
33-
export OF_OS=$(${OF_PLATFORM} | tr '[:upper:]' '[:lower:]')
34-
export OF_ARCH=""
33+
export OF_OS=$(${OF_PLATFORM} | tr '[:upper:]' '[:lower:]')
34+
export OF_ARCH=""
3535
fi
3636
}
3737

@@ -74,14 +74,14 @@ runCommand() {
7474
;;
7575
update)
7676
echo "openFrameworks update"
77-
SCRIPT="${OF_SCRIPT_PATH}/download_libs.sh"
77+
SCRIPT="${OF_CORE_SCRIPT_DIR}/${OF_PLATFORM}/download_libs.sh"
7878
;;
7979
upgrade)
8080
echo "openFrameworks upgrade"
8181
case "$SUBCMD" in
8282
addons)
8383
echo "Upgrading addons"
84-
SCRIPT="${OF_SCRIPT_PATH}/dev/upgrade.sh"
84+
SCRIPT="${OF_CORE_SCRIPT_DIR}/dev/upgrade.sh"
8585
;;
8686
apps)
8787
echo "Upgrading apps"
@@ -91,7 +91,7 @@ runCommand() {
9191
echo "Upgrade cancelled. No changes were made."
9292
exit 0
9393
fi
94-
SCRIPT="${OF_SCRIPT_PATH}/dev/upgrade.sh"
94+
SCRIPT="${OF_CORE_SCRIPT_DIR}/dev/upgrade.sh"
9595
;;
9696
*)
9797
echo "Unknown upgrade action: $SUBCMD"

0 commit comments

Comments
 (0)