Skip to content

Commit

Permalink
Change APPDIR project path
Browse files Browse the repository at this point in the history
  • Loading branch information
siepra committed Oct 3, 2023
1 parent b491c37 commit 1d56aba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/desktop/scripts/setEnvs.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ exports.default = async function (context) {
childProcess.execSync(`${context.artifactPaths[0]} --appimage-extract`)
childProcess.execSync(`mv ./squashfs-root ${context.outDir}/squashfs-root`)
const data = fs.readFileSync(`${context.outDir}/squashfs-root/AppRun`, 'utf8').split('\n')
const index = data.findIndex(text => text === 'BIN="$APPDIR/quiet"')
console.log('APPDIR', $APPDIR)
const index = data.findIndex(text => text === 'BIN="$APPDIR/@quiet/desktop"')
if (index !== -1) {
data[index - 1] = 'export LD_PRELOAD="${APPDIR}/usr/lib/libssl.so"'
fs.writeFileSync(`${context.outDir}/squashfs-root/AppRun`, data.join('\n'), 'utf8')
Expand Down

0 comments on commit 1d56aba

Please sign in to comment.