Skip to content

Commit

Permalink
Merge pull request #122 from fosslife/master
Browse files Browse the repository at this point in the history
release: v3.1,0
  • Loading branch information
Sparkenstein authored Nov 8, 2024
2 parents b72c16c + a4b8016 commit 5c2c284
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 14 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<script>
const global = globalThis;
</script>
<style>
<style nonce="123">
@media print {
html,
body {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dev-tools",
"version": "3.0.0",
"name": "devtools-x",
"version": "3.1.0",
"license": "MIT",
"type": "module",
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions scripts/compress.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ function findBinary(dir) {
for (const file of files) {
const filePath = path.join(dir, file);
const stat = fs.statSync(filePath);
console.log(file);
if (stat.isDirectory()) {
// ignore
} else if (file === "dev-tools" || file === "dev-tools.exe") {
} else if (file === "devtools-x" || file === "devtools-x.exe") {
return filePath;
}
}
Expand All @@ -36,7 +37,7 @@ if (binaryPath) {
console.log("UPX compression completed successfully.");
} catch (error) {
console.error("Error during UPX compression:", error);
process.exit(1);
// process.exit(1);
}
} else {
console.error("Binary not found");
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "devtools-x"
version = "3.0.0"
version = "3.1.0"
description = "Developer tools desktop application"
authors = ["Sparkenstein"]
license = "MIT"
Expand Down
43 changes: 36 additions & 7 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}
},
"licenseFile": "LICENSE",
"createUpdaterArtifacts": "v1Compatible"
"createUpdaterArtifacts": true
},
"build": {
"beforeBundleCommand": "node scripts/compress.mjs",
Expand All @@ -42,9 +42,9 @@
"beforeBuildCommand": "yarn build",
"devUrl": "http://localhost:3000"
},
"productName": "dev-tools",
"mainBinaryName": "dev-tools",
"version": "3.0.0",
"productName": "devtools-x",
"mainBinaryName": "devtools-x",
"version": "3.1.0",
"identifier": "com.fosslife.devtoolsx",
"plugins": {
"updater": {
Expand All @@ -58,10 +58,39 @@
"security": {
"assetProtocol": {
"enable": true,
"scope": ["http://asset.localhost"]
"scope": [
"http://asset.localhost"
]
},
"dangerousDisableAssetCspModification": false,
"csp": "default-src 'self' blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline'; worker-src blob: 'self' https://unpkg.com; script-src 'self' 'unsafe-eval' 'unsafe-inline';"
"dangerousDisableAssetCspModification": [
"style-src"
],
"csp": {
"default-src": [
"'self'",
"blob:",
"data:",
"filesystem:",
"ws:",
"wss:",
"http:",
"https:",
"tauri:"
],
"worker-src": [
"'self'",
"blob:",
"https://unpkg.com"
],
"script-src": [
"'self'",
"'unsafe-inline'"
],
"style-src": [
"'self'",
"'unsafe-inline'"
]
}
},
"windows": []
}
Expand Down

0 comments on commit 5c2c284

Please sign in to comment.