From: vincent@cubedesigners.com Date: Mon, 9 Nov 2020 15:56:59 +0000 (+0000) Subject: wait #4020 @2 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=29d0f5b471170d9e1f455bd492231e6dfe7d88c7;p=cubeextranet.git wait #4020 @2 --- diff --git a/desktop/empty/main.js b/desktop/empty/main.js new file mode 100644 index 000000000..a35b8ff7f --- /dev/null +++ b/desktop/empty/main.js @@ -0,0 +1,34 @@ +var win=nw.Window.open('https://workshop.fluidbook.com/publications', {}, function (win) { +}); + +try { + win.on('close', function () { + win.hide(); + nw.App.clearCache(); + + // this one will cause significantly increase the + // shutdown duration if run during app exit + chrome.browsingData.remove({ + since: 0 + }, { + appcache: true, + cache: true, + cookies: false, + downloads: false, + fileSystems: false, + formData: false, + history: false, + indexedDB: false, + localStorage: false, + pluginData: false, + passwords: false, + serverBoundCertificates: false, + serviceWorkers: false, + webSQL: false + }); + + win.close(true); + }); +} catch (e) { + console.log(e); +} \ No newline at end of file diff --git a/desktop/empty/package.json b/desktop/empty/package.json index 72a82706d..78b4b865a 100644 --- a/desktop/empty/package.json +++ b/desktop/empty/package.json @@ -1,11 +1,12 @@ { - "main": "https://workshop.fluidbook.com/publications/", + "main": "main.js", "name": "Fluidbook Workshop", + "chromium-args": "--disk-cache-size=1 --user-data-dir='temp/'", "window": { - "id":"main", - "title":"Fluidbook Workshop", - "width":1600, - "height":900, - "icon":"fluidbook.png" + "id": "main", + "title": "Fluidbook Workshop", + "width": 1600, + "height": 900, + "icon": "fluidbook.png" } } \ No newline at end of file diff --git a/desktop/windows-installer/Fluidbook-Workshop.exe b/desktop/windows-installer/Fluidbook-Workshop.exe index 9f1022c27..787be7a84 100644 Binary files a/desktop/windows-installer/Fluidbook-Workshop.exe and b/desktop/windows-installer/Fluidbook-Workshop.exe differ diff --git a/desktop/windows-installer/FluidbookWorkshop.nsis b/desktop/windows-installer/FluidbookWorkshop.nsis index 373ca3c90..caf156413 100644 --- a/desktop/windows-installer/FluidbookWorkshop.nsis +++ b/desktop/windows-installer/FluidbookWorkshop.nsis @@ -33,7 +33,7 @@ Page directory Page instfiles ; Compression -SetCompress off +SetCompress auto ; The stuff to install Section "" ;No components page, name is not important diff --git a/desktop/windows/workshop/windows-x32/package.nw/package.json b/desktop/windows/workshop/windows-x32/package.nw/package.json index 72a82706d..78b4b865a 100644 --- a/desktop/windows/workshop/windows-x32/package.nw/package.json +++ b/desktop/windows/workshop/windows-x32/package.nw/package.json @@ -1,11 +1,12 @@ { - "main": "https://workshop.fluidbook.com/publications/", + "main": "main.js", "name": "Fluidbook Workshop", + "chromium-args": "--disk-cache-size=1 --user-data-dir='temp/'", "window": { - "id":"main", - "title":"Fluidbook Workshop", - "width":1600, - "height":900, - "icon":"fluidbook.png" + "id": "main", + "title": "Fluidbook Workshop", + "width": 1600, + "height": 900, + "icon": "fluidbook.png" } } \ No newline at end of file