Skip to content

Commit

Permalink
generating debian packge; fixes #93
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-portmen committed Oct 27, 2020
1 parent d8b9bda commit 3078bd0
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ deploy:
- linux.zip
- mac.zip
- src_no_node.zip
- linux.deb
on:
tags: true
overwrite: true
Expand Down
9 changes: 9 additions & 0 deletions apt/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Package: native-client
Version: 0.9.1
Section: custom
Priority: optional
Architecture: all
Essential: no
Installed-Size: 20480
Maintainer: Andy Portmen
Description: Native Messaging component for Windows, Linux, and Mac OS that is written in NodeJS
4 changes: 4 additions & 0 deletions apt/DEBIAN/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

/opt/native-client/install.sh
rm -rf /opt/native-client/
1 change: 1 addition & 0 deletions apt/opt/native-client/README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
temporary storage for native-client
6 changes: 6 additions & 0 deletions prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ zip ../windows.zip -9 -r * -x "*.DS_Store"

cd ..
zip "src_no_node.zip" -9 --symlinks -r * -x "*.DS_Store" -x "*/node/*/node" "windows/node/*/node.exe" "*.zip"

# debian package
unzip linux.zip -d apt/opt/native-client/
cp apt/opt/native-client/uninstall.sh apt/DEBIAN/postrm
dpkg-deb --build apt
mv apt.deb linux.deb
8 changes: 4 additions & 4 deletions windows/install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ IF EXIST "%~dp0\app\install.js" (GOTO :EXISTING) ELSE GOTO :MISSING
REG ADD "HKCU\Software\Google\Chrome\NativeMessagingHosts\com.add0n.node" /ve /t REG_SZ /d "%LocalAPPData%\com.add0n.node\manifest-chrome.json" /f

ECHO .. Writting to Chromium Registry
ECHO .. Key: HKEY_CURRENT_USER\Software\Chromium\NativeMessagingHosts\com.add0n.node
REG ADD "HKEY_CURRENT_USER\Software\Chromium\NativeMessagingHosts\com.add0n.node" /ve /t REG_SZ /d "%LocalAPPData%\com.add0n.node\manifest-chrome.json" /f
ECHO .. Key: HKCU\Software\Chromium\NativeMessagingHosts\com.add0n.node
REG ADD "HKCU\Software\Chromium\NativeMessagingHosts\com.add0n.node" /ve /t REG_SZ /d "%LocalAPPData%\com.add0n.node\manifest-chrome.json" /f

ECHO .. Writting to Edge Registry
ECHO .. Key: HKEY_CURRENT_USER\Software\Microsoft\Edge\NativeMessagingHosts\com.add0n.node
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Edge\NativeMessagingHosts\com.add0n.node" /ve /t REG_SZ /d "%LocalAPPData%\com.add0n.node\manifest-chrome.json" /f
ECHO .. Key: HKCU\Software\Microsoft\Edge\NativeMessagingHosts\com.add0n.node
REG ADD "HKCU\Software\Microsoft\Edge\NativeMessagingHosts\com.add0n.node" /ve /t REG_SZ /d "%LocalAPPData%\com.add0n.node\manifest-chrome.json" /f

ECHO .. Writting to Firefox Registry
ECHO .. Key: HKCU\SOFTWARE\Mozilla\NativeMessagingHosts\com.add0n.node
Expand Down

0 comments on commit 3078bd0

Please sign in to comment.