Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aokellermann committed Oct 13, 2023
1 parent 84949bc commit 292a33e
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion electron-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const fpmOptions = [
`--conflicts=${conflictProductId}`,
];

const combineTargetAndArch = (targets, architectures = ['x64', 'arm64']) =>
const combineTargetAndArch = (targets, architectures = ['x64']) =>
targets.map((target) => ({ target, arch: architectures }));

// realistically Auto Update only works for Windows
Expand Down
4 changes: 1 addition & 3 deletions patches/no-sandbox-flag.patch
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
Object.defineProperty(exports, "__esModule", { value: true });
require("../helpers/setEnvironment");
const electron_1 = require("electron");
+electron_1.app.commandLine.appendSwitch("--no-sandbox");
+electron_1.app.commandLine.appendSwitch("--enable-features=UseOzonePlatform");
+electron_1.app.commandLine.appendSwitch("--ozone-platform=wayland");
+electron_1.app.commandLine.appendSwitch("no-sandbox");
require("./crashReporter");
const security_1 = require("./security");
const autoUpdater_1 = require("./autoUpdater");
18 changes: 9 additions & 9 deletions scripts/aio-dev-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ log "Building vanilla edition..."

export NOTION_REPACKAGED_EDITION=vanilla

${WORKSPACE_DIR}/scripts/build-locally.sh --linux dir &

if [ "${NOTION_REPACKAGED_AIO_SKIP_ENHANCED}" != true ]; then
log "Building enhanced edition..."

export NOTION_REPACKAGED_EDITION=enhanced
${WORKSPACE_DIR}/scripts/build-locally.sh --linux dir
fi
${WORKSPACE_DIR}/scripts/build-locally.sh

#if [ "${NOTION_REPACKAGED_AIO_SKIP_ENHANCED}" != true ]; then
# log "Building enhanced edition..."
#
# export NOTION_REPACKAGED_EDITION=enhanced
#
# ${WORKSPACE_DIR}/scripts/build-locally.sh --linux dir
#fi

fg > /dev/null 2>&1 || true
log "All build steps have successfully finished."
2 changes: 1 addition & 1 deletion scripts/build-locally.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pushd "${NOTION_REPACKAGED_EDITION_SRCDIR}" > /dev/null

patchfile="${WORKSPACE_DIR}/patches/remove-postinstall.patch"
dos2unix "$patchfile"
patch -p0 --binary < "$patchfile"
patch -p0 --binary -N -r- < "$patchfile" ||:

log "Installing dependencies..."
npm install
Expand Down
3 changes: 3 additions & 0 deletions scripts/enhance-src.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ convert "${NOTION_ENHANCER_ICONS}/colour-x512.png" -resize 256x256 \
-define icon:auto-resize="256,128,96,64,48,32,16" \
icon.ico

# todo: use real icon
cp -f "${NOTION_ENHANCER_ICONS}/colour-x512.png" "../${NOTION_VANILLA_SRC_NAME}/icon.png"

# todo: what is this for?
#log "Converting icon to multi-size for Mac and Linux"
## https://askubuntu.com/questions/223215/how-can-i-convert-a-png-file-to-icns
Expand Down
2 changes: 1 addition & 1 deletion scripts/extract-src.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ sed -i 's|error.message.indexOf("/opt/notion-app/app.asar") !== -1|process.platf
# fix for issue #46 of notion-repackaged
patchfile="${WORKSPACE_DIR}/patches/no-sandbox-flag.patch"
dos2unix "$patchfile"
patch -p0 --binary < "$patchfile"
patch -p0 --binary -N -r- < "$patchfile" ||:

find . -type f -name "*.js.map" -exec rm {} +

Expand Down

0 comments on commit 292a33e

Please sign in to comment.