diff --git a/build/linux/after-install.tpl b/build/linux/after-install.tpl new file mode 100644 index 00000000..a383dc0c --- /dev/null +++ b/build/linux/after-install.tpl @@ -0,0 +1,4 @@ +#!/bin/bash + +# Link to the binary +ln -sf '/opt/${productFilename}/${executable}' '/usr/bin/${executable}' diff --git a/package.json b/package.json index 3a8b08c9..7be6bdda 100644 --- a/package.json +++ b/package.json @@ -120,7 +120,8 @@ "libxtst6", "libnss3", "tmux" - ] + ], + "afterInstall": "build/linux/after-install.tpl" }, "rpm": { "depends": [