mirror of
https://codeberg.org/icewind/originfox.git
synced 2026-06-03 10:14:08 +02:00
package manifest
This commit is contained in:
parent
c87c8c5682
commit
b5c9050a1f
1 changed files with 18 additions and 0 deletions
|
|
@ -17,5 +17,23 @@ in
|
||||||
lockFile = ../Cargo.lock;
|
lockFile = ../Cargo.lock;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mkdir -p $out/share/originfox
|
||||||
|
$out/bin/originfox generate-manifest > $out/share/originfox/originfox.json
|
||||||
|
|
||||||
|
nativeMessagingPaths=(
|
||||||
|
/lib/mozilla/native-messaging-hosts
|
||||||
|
/etc/opt/chrome/native-messaging-hosts
|
||||||
|
/etc/chromium/native-messaging-hosts
|
||||||
|
/etc/vivaldi/native-messaging-hosts
|
||||||
|
/lib/librewolf/native-messaging-hosts
|
||||||
|
)
|
||||||
|
|
||||||
|
for manifestDir in "''${nativeMessagingPaths[@]}"; do
|
||||||
|
mkdir -p $out$manifestDir
|
||||||
|
ln -s $out/share/originfox/originfox.json $out$manifestDir/
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
meta.mainProgram = "originfox";
|
meta.mainProgram = "originfox";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue