diff --git a/.travis.yml b/.travis.yml index 9e4dddf..c3954ed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,7 @@ deploy: - linux.zip - mac.zip - src_no_node.zip + - linux.deb on: tags: true overwrite: true diff --git a/apt/DEBIAN/control b/apt/DEBIAN/control new file mode 100644 index 0000000..58f4392 --- /dev/null +++ b/apt/DEBIAN/control @@ -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 diff --git a/apt/DEBIAN/postinst b/apt/DEBIAN/postinst new file mode 100755 index 0000000..8fdca17 --- /dev/null +++ b/apt/DEBIAN/postinst @@ -0,0 +1,4 @@ +#!/bin/sh + +/opt/native-client/install.sh +rm -rf /opt/native-client/ diff --git a/apt/opt/native-client/README b/apt/opt/native-client/README new file mode 100644 index 0000000..0590127 --- /dev/null +++ b/apt/opt/native-client/README @@ -0,0 +1 @@ +temporary storage for native-client diff --git a/prepare.sh b/prepare.sh index 36006d8..51bd2e4 100755 --- a/prepare.sh +++ b/prepare.sh @@ -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 diff --git a/windows/install.bat b/windows/install.bat index b454f15..4cb9e1f 100644 --- a/windows/install.bat +++ b/windows/install.bat @@ -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