Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[f39] add: asar (#1250) #1256

Merged
merged 1 commit into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions anda/devs/asar/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
project pkg {
arches = ["x86_64"]
rpm {
spec = "asar.spec"
}
}
41 changes: 41 additions & 0 deletions anda/devs/asar/asar.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
%define debug_package %nil
%define __strip /bin/true
%global _build_id_links none

# Exclude private libraries
%global __requires_exclude libffmpeg.so
%global __provides_exclude_from %{_datadir}/%{name}/.*\\.so

Name: asar
Version: 3.2.10
Release: 1%?dist
Summary: Simple extensive tar-like archive format with indexing
License: MIT
URL: https://github.com/electron/asar
Source0: %url/archive/refs/tags/v%version.tar.gz
Requires: nodejs
BuildRequires: nodejs-npm
BuildArch: noarch

%description
Asar is a simple extensive archive format, it works like `tar` that concatenates all files
together without compression, while having random access support.

%prep
%autosetup

%build

%install
mkdir -p %buildroot%_bindir
PATH="$PATH:%buildroot%_bindir"
npm install -g --prefix %buildroot%_prefix %SOURCE0

%files
%doc README.md
%license LICENSE.md
%_bindir/asar
%_prefix/lib/node_modules/@electron/asar/

%changelog
%autochangelog
1 change: 1 addition & 0 deletions anda/devs/asar/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(gh("electron/asar"));
Loading