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:
parent
670cab64e8
commit
27c76103d3
1 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue