瀏覽代碼

add empty build command to monolith (#201)

* add empty build command to monolith

* rerun init and add empty workspaces

seems if we don't add the empty workspaces the toml, it gets picked up as part of the root cargo package

* fix(cargo): match latest signature

* fix(updater): purge for now

* fix(config): whitelist:true and autoStart:false

Co-authored-by: nothingismagick <denjell@sfosc.org>
Jacob Bolda 5 年之前
父節點
當前提交
c496ec6b33

+ 1 - 0
examples/vanillajs/monolith/package.json

@@ -5,6 +5,7 @@
   "main": "index.js",
   "scripts": {
     "test": "echo \"Error: no test specified\" && exit 1",
+    "build": "echo \"No build is necessary for Vanillajs, skipping.\"",
     "html:dev": "quasar serve ./dist",
     "tauri:prod": "tauri",
     "tauri:source": "node ../../../cli/tauri.js/bin/tauri",

+ 3 - 1
examples/vanillajs/monolith/src-tauri/Cargo.toml

@@ -1,3 +1,5 @@
+workspace = { }
+
 [package]
 name = "app"
 version = "0.1.0"
@@ -31,7 +33,7 @@ includedir = "0.5.0"
   features = [ "all-api", "edge" ]
 
 [features]
-dev = [ "tauri/dev" ]
+dev-server = [ "tauri/dev-server" ]
 embedded-server = [ "tauri/embedded-server" ]
 
 [[bin]]

+ 4 - 2
examples/vanillajs/monolith/tauri.conf.js

@@ -23,8 +23,10 @@ module.exports = function () {
       },
       security: {
         csp: 'default-src data: filesystem: ws: http: https: \'unsafe-eval\' \'unsafe-inline\''
+      },
+      edge: {
+        active: true
       }
-    },
-    edge: true
+    }
   }
 }