1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-06-24 21:25:23 +00:00

Fixed multi-installation on Linux

This commit is contained in:
Michael Hollister 2024-11-19 15:18:36 -06:00
parent 670cab64e8
commit 27c76103d3

View file

@ -131,15 +131,15 @@ module.exports = {
fs.renameSync(`./out/${APPLICATION_NAME}-${packageResults.platform}-${packageResults.arch}/${APPLICATION_NAME}`, `./out/${APPLICATION_NAME}-${packageResults.platform}-${packageResults.arch}/${APPLICATION_NAME}.app`);
fs.writeFileSync(`./out/${APPLICATION_NAME}-${packageResults.platform}-${packageResults.arch}/${APPLICATION_NAME}`,
'#!/bin/sh\n' +
'installDir=$(which fcast-receiver)\n' +
'if [ -z "$installDir" ]; then\n' +
'\tbin="$0/fcast-receiver"\n' +
'if [ "$0" = "/usr/bin/fcast-receiver" ]; then\n' +
'\tbin="/usr/lib/fcast-receiver/fcast-receiver.app"\n' +
'else\n' +
'\tbin=$(readlink -f $installDir)\n' +
'\tbin="$0.app"\n' +
'fi\n' +
'"$bin.app" --no-sandbox $*'
'"$bin" --no-sandbox $*'
);
fs.chmodSync(`./out/${APPLICATION_NAME}-${packageResults.platform}-${packageResults.arch}/${APPLICATION_NAME}`, 0o755);
break;
}
default:
break;