mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-11 10:09:59 +00:00
Centralize package info and do version checking between app/ext
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
Package: fx-cast-bridge
|
||||
Version: 0.0.1
|
||||
Package: {{packageName}}
|
||||
Version: {{applicationVersion}}
|
||||
Priority: optional
|
||||
Architecture: amd64
|
||||
Description: fx_cast Bridge application
|
||||
Description: {{applicationName}}
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
Name: fx_cast_bridge
|
||||
Summary: fx_cast Bridge application
|
||||
Version: 0.0.1
|
||||
Release: 1
|
||||
License: MIT
|
||||
|
||||
%description
|
||||
fx_cast Bridge application
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT/opt/fx_cast/ \
|
||||
$RPM_BUILD_ROOT/usr/lib/mozilla/native-messaging-hosts/
|
||||
|
||||
cp %{_distdir}/bridge $RPM_BUILD_ROOT/opt/fx_cast/
|
||||
cp %{_distdir}/fx_cast_bridge.json $RPM_BUILD_ROOT/usr/lib/mozilla/native-messaging-hosts/
|
||||
|
||||
%files
|
||||
/opt/fx_cast/bridge
|
||||
/usr/lib/mozilla/native-messaging-hosts/fx_cast_bridge.json
|
||||
20
app/packaging/linux/rpm/package.spec
Normal file
20
app/packaging/linux/rpm/package.spec
Normal file
@@ -0,0 +1,20 @@
|
||||
Name: {{packageName}}
|
||||
Summary: {{applicationName}}
|
||||
Version: {{applicationVersion}}
|
||||
Release: 1
|
||||
License: MIT
|
||||
|
||||
%description
|
||||
{{applicationName}}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT/{{{executablePath}}} \
|
||||
$RPM_BUILD_ROOT/{{{manifestPath}}}
|
||||
|
||||
cp %{_distdir}/{{{executableName}}} $RPM_BUILD_ROOT/{{{executablePath}}}
|
||||
cp %{_distdir}/{{{manifestName}}} $RPM_BUILD_ROOT/{{{manifestPath}}}
|
||||
|
||||
%files
|
||||
{{{executablePath}}}/{{{executableName}}}
|
||||
{{{manifestPath}}}/{{{manifestName}}}
|
||||
Reference in New Issue
Block a user