diff options
author | AsukaMinato | 2023-11-09 12:51:11 +0900 |
---|---|---|
committer | AsukaMinato | 2023-11-09 12:51:11 +0900 |
commit | 4570433ec40be4b485bff07465e813fb567df7fc (patch) | |
tree | 2170df5655f841a8e87eb15b05dd856d535f0355 | |
parent | e862ab29e406627beed6f2ff0649aa0e3ac20110 (diff) | |
download | aur-4570433ec40be4b485bff07465e813fb567df7fc.tar.gz |
sed
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -36,11 +36,10 @@ prepare() { asar e "$srcdir/resources/app.asar" "$srcdir/unpacked" icotool -x -w 256 "$srcdir/unpacked/icon.ico" -o "$srcdir/notion.png" - # Space before `true` is required to avoid breaking minified code - sed -i 's/"win32"===process.platform/ true/g' "$srcdir/unpacked/.webpack/main/index.js" - sed -i 's/_.Store.getState().app.preferences?.isAutoUpdaterDisabled/true/g' "$srcdir/unpacked/.webpack/main/index.js" - sed -i 's/extra-resources/\/usr\/share\/icons\/hicolor\/256x256\/apps/g' "$srcdir/unpacked/.webpack/main/index.js" - sed -i 's/trayIcon.ico/notion.png/g' "$srcdir/unpacked/.webpack/main/index.js" + sed -i -e 's/"win32"===process.platform/(true)/g + s/_.Store.getState().app.preferences?.isAutoUpdaterDisabled/(true)/g + s!extra-resources!/usr/share/icons/hicolor/256x256/apps!g + s/trayIcon.ico/notion.png/g' "$srcdir/unpacked/.webpack/main/index.js" gendesk -f \ --pkgname notion \ |