@ycs77/devbox 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +5 -11
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1800,8 +1800,6 @@ function renderNodeRuntimeStage(recipe) {
|
|
|
1800
1800
|
" && set -eux \\",
|
|
1801
1801
|
` && NODE_RUNTIME_VERSION=${recipe.version} \\`,
|
|
1802
1802
|
` && NODE_RUNTIME_ROOT=${recipe.runtimeRoot} \\`,
|
|
1803
|
-
` && NODE_ARCHIVE_URL="https://nodejs.org/dist/v\${NODE_RUNTIME_VERSION}/node-v\${NODE_RUNTIME_VERSION}-linux-\${ARCH}.tar.xz" \\`,
|
|
1804
|
-
` && NODE_CHECKSUMS_URL="https://nodejs.org/dist/v\${NODE_RUNTIME_VERSION}/SHASUMS256.txt.asc" \\`,
|
|
1805
1803
|
" && mkdir -p \"$NODE_RUNTIME_ROOT\" /tmp/node-source \\",
|
|
1806
1804
|
" && cd /tmp/node-source \\",
|
|
1807
1805
|
" && export GNUPGHOME=\"$(mktemp -d)\" \\",
|
|
@@ -1812,18 +1810,14 @@ function renderNodeRuntimeStage(recipe) {
|
|
|
1812
1810
|
" { gpg --batch --no-options --keyserver keyserver.ubuntu.com --recv-keys \"$key\" && gpg --batch --no-options --fingerprint \"$key\"; }; \\",
|
|
1813
1811
|
" done \\",
|
|
1814
1812
|
" && archive=\"node-v${NODE_RUNTIME_VERSION}-linux-${ARCH}.tar.xz\" \\",
|
|
1815
|
-
" && curl -
|
|
1816
|
-
" && curl -
|
|
1813
|
+
" && curl -fsSLO --compressed \"https://nodejs.org/dist/v${NODE_RUNTIME_VERSION}/node-v${NODE_RUNTIME_VERSION}-linux-${ARCH}.tar.xz\" \\",
|
|
1814
|
+
" && curl -fsSLO --compressed \"https://nodejs.org/dist/v${NODE_RUNTIME_VERSION}/SHASUMS256.txt.asc\" \\",
|
|
1817
1815
|
" && gpg --batch --no-options --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \\",
|
|
1818
1816
|
" && gpgconf --kill all \\",
|
|
1819
1817
|
" && rm -rf \"$GNUPGHOME\" \\",
|
|
1820
|
-
" &&
|
|
1821
|
-
"
|
|
1822
|
-
"
|
|
1823
|
-
" && sha256sum --check \"$archive.sha256\" \\",
|
|
1824
|
-
" && tar --extract --xz --file \"$archive\" --directory \"$NODE_RUNTIME_ROOT\" \\",
|
|
1825
|
-
" --strip-components=1 --no-same-owner \\",
|
|
1826
|
-
" && rm \"$archive\" SHASUMS256.txt.asc SHASUMS256.txt \"$archive.sha256\" \\",
|
|
1818
|
+
" && grep \" node-v${NODE_RUNTIME_VERSION}-linux-${ARCH}.tar.xz\\$\" SHASUMS256.txt | sha256sum -c - \\",
|
|
1819
|
+
" && tar -xJf \"node-v${NODE_RUNTIME_VERSION}-linux-${ARCH}.tar.xz\" -C \"$NODE_RUNTIME_ROOT\" --strip-components=1 --no-same-owner \\",
|
|
1820
|
+
" && rm \"node-v${NODE_RUNTIME_VERSION}-linux-${ARCH}.tar.xz\" SHASUMS256.txt.asc SHASUMS256.txt \\",
|
|
1827
1821
|
" && find \"$NODE_RUNTIME_ROOT/include/node/openssl/archs\" -mindepth 1 -maxdepth 1 ! -name \"$OPENSSL_ARCH\" -exec rm -rf {} \\; \\",
|
|
1828
1822
|
" && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \\",
|
|
1829
1823
|
" && export PATH=\"$NODE_RUNTIME_ROOT/bin:$PATH\" \\",
|