]> _ Git - cubeextranet.git/commitdiff
wait #4020 @2
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 9 Nov 2020 15:56:59 +0000 (15:56 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 9 Nov 2020 15:56:59 +0000 (15:56 +0000)
desktop/empty/main.js [new file with mode: 0644]
desktop/empty/package.json
desktop/windows-installer/Fluidbook-Workshop.exe
desktop/windows-installer/FluidbookWorkshop.nsis
desktop/windows/workshop/windows-x32/package.nw/package.json

diff --git a/desktop/empty/main.js b/desktop/empty/main.js
new file mode 100644 (file)
index 0000000..a35b8ff
--- /dev/null
@@ -0,0 +1,34 @@
+var win=nw.Window.open('https://workshop.fluidbook.com/publications', {}, function (win) {\r
+});\r
+\r
+try {\r
+    win.on('close', function () {\r
+        win.hide();\r
+        nw.App.clearCache();\r
+\r
+        // this one will cause significantly increase the\r
+        // shutdown duration if run during app exit\r
+        chrome.browsingData.remove({\r
+            since: 0\r
+        }, {\r
+            appcache: true,\r
+            cache: true,\r
+            cookies: false,\r
+            downloads: false,\r
+            fileSystems: false,\r
+            formData: false,\r
+            history: false,\r
+            indexedDB: false,\r
+            localStorage: false,\r
+            pluginData: false,\r
+            passwords: false,\r
+            serverBoundCertificates: false,\r
+            serviceWorkers: false,\r
+            webSQL: false\r
+        });\r
+\r
+        win.close(true);\r
+    });\r
+} catch (e) {\r
+    console.log(e);\r
+}
\ No newline at end of file
index 72a82706dc133bcf234b7b3d4e85b0f6e1aab5fa..78b4b865a608907ba873359b5dcd52e0fe1ce0ea 100644 (file)
@@ -1,11 +1,12 @@
 {\r
-  "main": "https://workshop.fluidbook.com/publications/",\r
+  "main": "main.js",\r
   "name": "Fluidbook Workshop",\r
+  "chromium-args": "--disk-cache-size=1 --user-data-dir='temp/'",\r
   "window": {\r
-       "id":"main",\r
-       "title":"Fluidbook Workshop",\r
-       "width":1600,\r
-       "height":900,\r
-       "icon":"fluidbook.png"\r
+    "id": "main",\r
+    "title": "Fluidbook Workshop",\r
+    "width": 1600,\r
+    "height": 900,\r
+    "icon": "fluidbook.png"\r
   }\r
 }
\ No newline at end of file
index 9f1022c2754624bde7f61af9b218d7077ea133f5..787be7a842b3f592adb9b80f1fcdc27de07aed85 100644 (file)
Binary files a/desktop/windows-installer/Fluidbook-Workshop.exe and b/desktop/windows-installer/Fluidbook-Workshop.exe differ
index 373ca3c90cd7fec7b516dc3a38302a43f177325a..caf1564138847d902faede38a80714f4465765d2 100644 (file)
@@ -33,7 +33,7 @@ Page directory
 Page instfiles\r
 \r
 ; Compression\r
-SetCompress off\r
+SetCompress auto\r
 \r
 ; The stuff to install\r
 Section "" ;No components page, name is not important\r
index 72a82706dc133bcf234b7b3d4e85b0f6e1aab5fa..78b4b865a608907ba873359b5dcd52e0fe1ce0ea 100644 (file)
@@ -1,11 +1,12 @@
 {\r
-  "main": "https://workshop.fluidbook.com/publications/",\r
+  "main": "main.js",\r
   "name": "Fluidbook Workshop",\r
+  "chromium-args": "--disk-cache-size=1 --user-data-dir='temp/'",\r
   "window": {\r
-       "id":"main",\r
-       "title":"Fluidbook Workshop",\r
-       "width":1600,\r
-       "height":900,\r
-       "icon":"fluidbook.png"\r
+    "id": "main",\r
+    "title": "Fluidbook Workshop",\r
+    "width": 1600,\r
+    "height": 900,\r
+    "icon": "fluidbook.png"\r
   }\r
 }
\ No newline at end of file