Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonathan Wilkes
purr-data
Commits
2a3a1c6b
Commit
2a3a1c6b
authored
3 years ago
by
Jonathan Wilkes
Browse files
Options
Downloads
Plain Diff
Merge branch 'aggraef/purr-data-taremup-nwjs-arm-fixes'
parents
1cc4aab7
1766aac4
No related branches found
Branches containing commit
No related tags found
1 merge request
!775
tar_em_up.sh: Fix the ARM nw.js package names and versions.
Pipeline
#3597
failed
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
l2ork_addons/tar_em_up.sh
+20
-14
20 additions, 14 deletions
l2ork_addons/tar_em_up.sh
with
20 additions
and
14 deletions
l2ork_addons/tar_em_up.sh
+
20
−
14
View file @
2a3a1c6b
...
...
@@ -174,12 +174,12 @@ if [ ! -d "../pd/nw/nw" ]; then
# for rpi
if
[
`
uname
-m
`
==
"armv7l"
]
;
then
arch
=
"arm
v7l
"
arch
=
"arm"
fi
# for pinebook, probably also rpi 4
if
[
`
uname
-m
`
==
"aarch64"
]
;
then
arch
=
"arm
v7l
"
arch
=
"arm
64
"
fi
# MSYS: Pick the right architecture depending on whether we're
...
...
@@ -199,9 +199,11 @@ if [ ! -d "../pd/nw/nw" ]; then
# We need the lts version to be able to run on legacy systems.
nwjs_version
=
"v0.14.7"
else
# temporary kluge for rpi-- only 0.15.1 is available atm
if
[
$arch
==
"armv7l"
]
;
then
nwjs_version
=
"v0.17.6"
# temporary kluge for rpi-- only 0.27.6 is available atm
if
[
$arch
==
"arm"
]
;
then
nwjs_version
=
"v0.27.6"
elif
[
$arch
==
"arm64"
]
;
then
nwjs_version
=
"v0.23.7"
else
nwjs_version
=
"v0.28.1"
fi
...
...
@@ -213,27 +215,31 @@ if [ ! -d "../pd/nw/nw" ]; then
else
nwjs_dirname
=
${
nwjs
}
-
${
nwjs_version
}
-
${
os
}
-
${
arch
}
fi
nwjs_filename
=
${
nwjs_dirname
}
.
${
ext
}
# the arm64 package has a slightly different name
if
[
$arch
==
"arm64"
]
;
then
nwjs_filename
=
${
nwjs
}
-without-nacl-
${
nwjs_version
}
-
${
os
}
-
${
arch
}
.
${
ext
}
else
nwjs_filename
=
${
nwjs_dirname
}
.
${
ext
}
fi
nwjs_url
=
https://git.purrdata.net/jwilkes/nwjs-binaries/raw/master
nwjs_url
=
${
nwjs_url
}
/
$nwjs_filename
echo
"Fetching the nwjs binary from"
echo
"
$nwjs_url
"
if
!
wget
-nv
$nwjs_url
;
then
if
[[
$arch
==
"arm"
||
$arch
==
"arm64"
]]
;
then
nwjs_url
=
https://github.com/LeonardLaszlo/nw.js-armv7-binaries/releases/download/
${
nwjs_version
}
/
$nwjs_filename
else
nwjs_url
=
https://dl.nwjs.io/
${
nwjs_version
}
/
$nwjs_filename
echo
"Fetching the nwjs binary from"
echo
"
$nwjs_url
"
wget
-nv
$nwjs_url
fi
echo
"Fetching the nwjs binary from"
echo
"
$nwjs_url
"
wget
-nv
$nwjs_url
fi
if
[[
$os
==
"win"
||
$os
==
"win64"
||
$os
==
"osx"
]]
;
then
unzip
$nwjs_filename
else
tar
-xf
$nwjs_filename
fi
# Special case for arm binary's inconsistent directory name
# (It's not the same as the `uname -m` output)
if
[
$arch
==
"armv7l"
]
;
then
nwjs_dirname
=
`
echo
$nwjs_dirname
|
sed
's/armv7l/arm/'
`
fi
mv
$nwjs_dirname
../pd/nw/nw
# make sure the nw binary is executable on GNU/Linux
if
[[
$os
!=
"win"
&&
$dmg
==
0
]]
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment