diff --git a/package-lock.json b/package-lock.json index e415c39..a32dbc5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "msi", - "version": "2.0.0-beta.3", + "version": "2.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "msi", - "version": "2.0.0-beta.3", + "version": "2.0.1", "dependencies": { "@tauri-apps/api": "^1.0.0-rc.4", "@tauri-apps/tauri-forage": "^1.0.0-beta.2", @@ -28,7 +28,8 @@ }, "devDependencies": { "@tauri-apps/cli": "^1.0.0-rc.9", - "cross-env": "^7.0.3" + "cross-env": "^7.0.3", + "env-cmd": "^10.1.0" } }, "node_modules/@ampproject/remapping": { @@ -6264,6 +6265,31 @@ "url": "https://github.com/fb55/entities?sponsor=1" } }, + "node_modules/env-cmd": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/env-cmd/-/env-cmd-10.1.0.tgz", + "integrity": "sha512-mMdWTT9XKN7yNth/6N6g2GuKuJTsKMDHlQFUDacb/heQRRWOTIZ42t1rMHnQu4jYxU1ajdTeJM+9eEETlqToMA==", + "dev": true, + "dependencies": { + "commander": "^4.0.0", + "cross-spawn": "^7.0.0" + }, + "bin": { + "env-cmd": "bin/env-cmd.js" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/env-cmd/node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, "node_modules/error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", @@ -19256,6 +19282,24 @@ "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==" }, + "env-cmd": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/env-cmd/-/env-cmd-10.1.0.tgz", + "integrity": "sha512-mMdWTT9XKN7yNth/6N6g2GuKuJTsKMDHlQFUDacb/heQRRWOTIZ42t1rMHnQu4jYxU1ajdTeJM+9eEETlqToMA==", + "dev": true, + "requires": { + "commander": "^4.0.0", + "cross-spawn": "^7.0.0" + }, + "dependencies": { + "commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "dev": true + } + } + }, "error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", diff --git a/package.json b/package.json index cf92970..e3e6ba0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "msi", - "version": "2.0.0-beta.3", + "version": "2.0.1", "private": true, "dependencies": { "@tauri-apps/api": "^1.0.0-rc.4", @@ -26,7 +26,7 @@ "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", - "tauri": "tauri" + "tauri": "env-cmd tauri" }, "eslintConfig": { "extends": [ @@ -48,6 +48,7 @@ }, "devDependencies": { "@tauri-apps/cli": "^1.0.0-rc.9", - "cross-env": "^7.0.3" + "cross-env": "^7.0.3", + "env-cmd": "^10.1.0" } } diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 1e44ff7..ad496d5 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -1487,7 +1487,7 @@ dependencies = [ [[package]] name = "msi" -version = "2.0.0" +version = "2.0.1" dependencies = [ "serde", "serde_json", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 59d6c13..a1c0aa9 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "msi" -version = "2.0.0" +version = "2.0.1" description = "A program that allows you to visualize the main components of your Windows computer" authors = ["Jecsham Castillo"] license = "MIT" diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 3d9a289..d497c50 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -1,4 +1,4 @@ -// #![windows_subsystem = "windows"] +#![windows_subsystem = "windows"] mod commands; use commands::system_data::system_data_command; diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index c8911ff..ae8a16c 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "package": { "productName": "My System Information", - "version": "2.0.0" + "version": "2.0.1" }, "build": { "distDir": "../build", @@ -12,7 +12,7 @@ "tauri": { "bundle": { "active": true, - "targets": "msi", + "targets": "all", "identifier": "com.jecsham.msi", "icon": [ "icons/32x32.png", @@ -46,7 +46,7 @@ "updater": { "active": true, "endpoints": [ - "https://msi.jecsham.com/update.json" + "https://msi.jecsham.com/update.json?t={{target}}&cv={{current_version}}" ], "dialog": true, "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEM5MDdFN0VDOTAyRTZDMTgKUldRWWJDNlE3T2NIeVRJZzh1WFZUa2d6QUI2TEJHbzJHdFlJTm1YMVdydFpJZnlGUWVaRk9QcSsK"