diff --git a/asar.spec b/asar.spec index d715f3d..bf99d54 100644 --- a/asar.spec +++ b/asar.spec @@ -17,7 +17,7 @@ Name: asar -Version: 3.2.8 +Version: 3.2.9 Release: 0 Summary: Creating atom-shell (electron) app packages License: MIT and ISC @@ -89,7 +89,11 @@ find -name '.releaserc*' -type f -print -delete %fdupes %{buildroot} -#%%check +%check +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Node.js/#_build_testing_in_check +%{__nodejs} -e 'require("./")' + + #We can't run tests, we don't have mocha available. %files diff --git a/prepare_vendor.sh b/prepare_vendor.sh index 9aca072..12e334e 100644 --- a/prepare_vendor.sh +++ b/prepare_vendor.sh @@ -1,5 +1,4 @@ -#!/bin/bash -x -# shellcheck disable=2181 +#!/bin/bash -eux ASAR_PKGDIR="$(pwd)" ASAR_PKGVERSION=$(<./*.spec grep ^Version | sed -e 's/Version:[ ]*//g') @@ -41,7 +40,7 @@ pushd "$ASAR_PATH" || cleanup_and_exit 1 echo ">>>>>> Install npm modules" -yarn install --pure-lockfile --ignore-engines --ignore-scripts --production --link-duplicates +yarn install --frozen-lockfile --ignore-engines --ignore-platform --ignore-scripts --production --link-duplicates ret=$? if [ $ret -ne 0 ]; then echo "ERROR: yarn install failed" @@ -69,14 +68,9 @@ find . -type f| sponge |\ echo ">>>>>> Package vendor files" -rm -f "${SIGNAL_PKGDIR}/vendor.tar.zst" +rm -f "${ASAR_PKGDIR}/vendor.tar.zst" ZSTD_CLEVEL=19 ZSTD_NBTHREADS=$(nproc) tar --zstd --sort=name -vvScf "${ASAR_PKGDIR}/vendor.tar.zst" node_modules if [ $? -ne 0 ]; then cleanup_and_exit 1 fi echo "vendor $(du -sh "${ASAR_PKGDIR}/vendor.tar.zst")" - - -popd || cleanup_and_exit 1 - -cleanup_and_exit 0 diff --git a/v3.2.8.tar.gz b/v3.2.8.tar.gz deleted file mode 100644 index 2a64f2b..0000000 --- a/v3.2.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:200d62f1797d0d8e07c0f454cf7e899de6ac3489ff69fdab7d22280636758fdf -size 109753 diff --git a/v3.2.9.tar.gz b/v3.2.9.tar.gz new file mode 100644 index 0000000..f9ef01b --- /dev/null +++ b/v3.2.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4698a5b838ad5b22c007b378d6c29b195c8581fee552e96504ff5c5a887acde4 +size 83309 diff --git a/vendor.tar.zst b/vendor.tar.zst index 4c0f4a2..e4d226e 100644 --- a/vendor.tar.zst +++ b/vendor.tar.zst @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f3097609e1c361db8dfa04a8a96e9b6a81a80cde25c2693a736bc21a66021cf2 -size 87014 +oid sha256:cb65f1c689dc7f1915c21590c44e95fb9d573e752c35026277e25bc0521a0a1b +size 79194