3 Commits

Author SHA256 Message Date
7582ef8514 Accepting request 1200054 from devel:languages:nodejs
- New upstream release 3.2.13
  * Export a `default` property (gh#electron/asar#325)
- New upstream release 3.2.11
  * complete rewrite of the program in Typescript
  * ensure symlinks do not write unexpectedly (gh#electron/asar#322)
- Run test suite in %check

OBS-URL: https://build.opensuse.org/request/show/1200054
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/asar?expand=0&rev=10
2024-09-11 14:55:45 +00:00
0d94c4528a - New upstream release 3.2.13
* Export a `default` property (gh#electron/asar#325)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/asar?expand=0&rev=27
2024-09-11 08:03:02 +00:00
42208b5c35 - New upstream release 3.2.11
* complete rewrite of the program in Typescript
  * ensure symlinks do not write unexpectedly (gh#electron/asar#322)
- Run test suite in %check

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/asar?expand=0&rev=26
2024-09-10 21:05:38 +00:00
5 changed files with 13 additions and 58 deletions

View File

@@ -1,40 +1,3 @@
-------------------------------------------------------------------
Sat May 17 11:40:13 UTC 2025 - Bruno Pitrus <brunopitrus@hotmail.com>
- New upstream release 4.0.0
* Rewrite program to use ES modules and require Node 22
-------------------------------------------------------------------
Mon Apr 7 14:04:51 UTC 2025 - Bruno Pitrus <brunopitrus@hotmail.com>
- New upstream release 3.4.1
* allow ../ symlink Streams when they're still within the package (gh#electron/asar#363)
-------------------------------------------------------------------
Wed Apr 2 10:29:53 UTC 2025 - Bruno Pitrus <brunopitrus@hotmail.com>
- New upstream release 3.4.0
* add in-memory API for streaming files to destination asar
-------------------------------------------------------------------
Tue Jan 7 20:14:41 UTC 2025 - Bruno Pitrus <brunopitrus@hotmail.com>
- New upstream release 3.2.18
* Respect unpack minimatch for symlinks within previously unpacked directories (gh#electron/asar#341)
-------------------------------------------------------------------
Thu Nov 7 10:57:33 UTC 2024 - Bruno Pitrus <brunopitrus@hotmail.com>
- New upstream release 3.2.17
* isUnpackedDir matches non-child directories that have same folder name prefix (gh#electron/asar#333)
* checking if symlink with same prefix points outside the directory (gh#electron/asar#335)
-------------------------------------------------------------------
Wed Nov 6 15:52:11 UTC 2024 - Bruno Pitrus <brunopitrus@hotmail.com>
- New upstream release 3.2.16
* Enable getNode to follow directory links (gh#electron/asar#248)
-------------------------------------------------------------------
Wed Sep 11 08:00:37 UTC 2024 - Bruno Pitrus <brunopitrus@hotmail.com>

View File

@@ -17,7 +17,7 @@
Name: asar
Version: 4.0.0
Version: 3.2.13
Release: 0
Summary: Creating atom-shell (electron) app packages
License: MIT and ISC
@@ -65,12 +65,12 @@ tsc --removeComments --sourceMap false || true
%install
mkdir -pv %{buildroot}%{nodejs_sitelib}/@electron
mkdir -pv %{buildroot}%{_bindir}
cp -alr . %{buildroot}%{nodejs_sitelib}/@electron/asar
ln -srv %{buildroot}%{nodejs_sitelib}/@electron/asar/bin/asar.mjs %{buildroot}%{_bindir}/asar
cp -lr . %{buildroot}%{nodejs_sitelib}/@electron/asar
ln -srv %{buildroot}%{nodejs_sitelib}/@electron/asar/bin/asar.js %{buildroot}%{_bindir}/asar
# symlink old package name
ln -srv %{buildroot}%{nodejs_sitelib}/{@electron/,}asar
#fix shebang
sed -i '1s/env //' %{buildroot}%{nodejs_sitelib}/@electron/asar/bin/asar.mjs
sed -i '1s/env //' %{buildroot}%{nodejs_sitelib}/@electron/asar/bin/asar.js
cd %{buildroot}%{nodejs_sitelib}/asar
# Correct bogus version in package.json
@@ -92,10 +92,7 @@ find -name @types -print0 |xargs -r0 -- rm -rvf
find -name .github -print0 |xargs -r0 -- rm -rvf
find -name .circleci -print0 |xargs -r0 -- rm -rvf
find -name '*.md' -type f -print -delete
find -name '*.map' -type f -print -delete
find -name '*.markdown' -type f -print -delete
find -name '*.cts' -type f -print -delete
find -name '*.mts' -type f -print -delete
find -name '*.ts' -type f -print -delete
find -name '.*.yml' -type f -print -delete
find -name '.*ignore' -type f -print -delete
@@ -106,12 +103,7 @@ find -name '.yarn*' -type f -print -delete
find -name '*package-lock.json' -type f -print -delete
find -name '.prettierrc*' -type f -print -delete
find -name '.releaserc*' -type f -print -delete
find -name '.mocharc*' -type f -print -delete
find -name tsconfig.json -type f -print -delete
find -name .nvmrc -type f -print -delete
#remove symlink to no longer existent dev executable
rm -v node_modules/.bin/node-which
# Remove empty directories
find . -type d -empty -print -delete
@@ -119,16 +111,16 @@ find . -type d -empty -print -delete
%fdupes %{buildroot}
%check
pushd %{buildroot}%{nodejs_sitelib}
pushd %{buildroot}%{nodejs_sitelib}/asar
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Node.js/#_build_testing_in_check
%{__nodejs} -e 'require("@electron/asar")'
%{__nodejs} -e 'require("./")'
#check that the executable starts
./@electron/asar/bin/asar.mjs -h
./bin/asar.js -h
popd
#the actual test suite
npx mocha -- --timeout '"20000"'
npx mocha -- --reporter spec --timeout 10000
%files
%defattr(-,root,root)

3
v3.2.13.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7ae3926ecbce6560d9f48948f18aee8ade7651f1ee319eb3e1538a1ffaa68ac8
size 50236

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:309ee3662aaeebf60ccf3d4ec7be43022114cc035d2a481deb50651d8f627643
size 79872

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4ef8b0898802b682c6728873ffcdf7fbf982e6072cc87bc44dd6ae24b89870f1
size 9525130
oid sha256:868bba63e9833e2434238c004473e661597c93adbe1bc40d9c0cf1897808dd9c
size 5366272