Skip to content

Commit 69c1478

Browse files
init
1 parent baad55b commit 69c1478

File tree

8 files changed

+19
-23
lines changed

8 files changed

+19
-23
lines changed

Cargo.toml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
[workspace]
2-
32
members = ["tiks_command","src-tauri"]
4-
resolver = "2"
5-
6-
7-
[profile.dev]
8-
panic = "abort"
93

10-
[profile.release]
11-
opt-level = "z" # Optimize for size.
12-
lto = true # Enable Link Time Optimization
13-
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
14-
panic = "abort" # Abort on panic
15-
strip = true # Automatically strip symbols from the binary.
4+
[workspace.package]
5+
version = "0.1.0"

space/workspace.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
2-
"workspace": [
3-
]
2+
"workspace": []
43
}

src-tauri/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
[package]
22
name = "Tzcode"
3-
version = "0.1.0"
3+
version = { workspace = true }
44
description = "Tzdoe"
55
authors = ["Zhangzijie <[email protected]>"]
66
repository = "https://github.com/zhangzijie-pro/Tzcode.git"
77
license = "MIT"
88
default-run = "Tzcode"
99
edition = "2021"
1010
rust-version = "1.60"
11+
build = "build.rs"
1112

1213
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1314

@@ -17,7 +18,7 @@ tauri-build = { version = "1.5.2", features = [] }
1718
[dependencies]
1819
serde_json = "1.0"
1920
serde = { version = "1.0", features = ["derive"] }
20-
tauri = { version = "1.6.4", features = [ "updater", "fs-all", "window-all", "dialog-all"] }
21+
tauri = { version = "1.6.4", features = [ "fs-rename-file", "window-unminimize", "dialog-open", "window-minimize", "window-unmaximize", "window-show", "window-maximize", "fs-create-dir", "window-hide", "fs-remove-dir", "dialog-save", "fs-copy-file", "window-start-dragging", "window-close", "fs-remove-file", "updater"] }
2122
lazy_static = { version = "1.4.0"}
2223
ansi-to-html = "0.2.1"
2324
tiks_command = { path = "../tiks_command" }

src-tauri/tauri.conf.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"allowlist": {
1515
"all": false,
1616
"window": {
17-
"all": true,
17+
"all": false,
1818
"close": true,
1919
"hide": true,
2020
"show": true,
@@ -25,12 +25,12 @@
2525
"startDragging": true
2626
},
2727
"dialog": {
28-
"all": true,
28+
"all": false,
2929
"open": true,
3030
"save": true
3131
},
3232
"fs": {
33-
"all": true,
33+
"all": false,
3434
"copyFile": true,
3535
"createDir": true,
3636
"removeDir": true,
@@ -60,7 +60,7 @@
6060
"providerShortName": null,
6161
"signingIdentity": null
6262
},
63-
"resources": ["../py","../sh","../space","../tiks_command"],
63+
"resources": ["../py","../ui","../space"],
6464
"shortDescription": "",
6565
"targets": "all",
6666
"windows": {
@@ -76,11 +76,14 @@
7676
"active": true,
7777
"dialog": true,
7878
"endpoints": [
79+
"https://gist.githubusercontent.com/zhangzijie-pro/3614b79c71445345354a89c4396c23b0/raw/808df321f878da37fdcf8646214b1409b4fc06f9/lastest.json"
7980
],
8081
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDEzQ0IyM0U2QzVERUQxNgpSV1FXN1Yxc1BySThBYkdnTCtBeUNGVTN5Kytna0xQTjVpcVFZeUM4THFEdEZsSmhPMnpWcVZ5ZQo=",
8182
"windows": {
82-
"installMode": "passive"
83+
"installMode": "basicUi",
84+
"installerArgs": []
8385
}
86+
8487
},
8588
"windows": [
8689
{

tiks_command/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ readme = "README.md"
88
description = "A Linux terminal simulator.fast!"
99
license = "MIT"
1010
include = ["src/**/*", "Cargo.*", "LICENSE", "README.md", "build.rs", "bin", "[*test*]"]
11+
build = "build.rs"
12+
1113

1214
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1315

1416
[dependencies]
15-
dashmap = "5.5.2"
1617
tokio = { version = "1", features = ["full"] }
1718
async-trait = "0.1.77"
1819
lazy_static = { version = "1.4.0"}
@@ -29,7 +30,6 @@ base64 = "0.22.0"
2930
rustyline = "8.0.0"
3031
async-std = { version = "1.10", features = ["attributes"] }
3132

32-
3333
[target.'cfg(not(target_os = "windows"))'.dependencies]
3434
term_size = "0.3.0"
3535
termion = "3.0.0"

tiks_command/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ fn main(){
55
cc::Build::new()
66
.file("./src/c_build/c/example.c")
77
.compile("hello");
8+
9+
println!("cargo:rerun-if-changed=build.rs");
810
}

ui/Tzcode.ico

245 KB
Binary file not shown.

ui/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Tzcode</title>
7+
<link rel="icon" href="../src-tauri/icons/Tzcode.ico">
78
<link rel="stylesheet" href="./css/style.css">
89
<link rel="stylesheet" href="./css/codeEditor.css">
910
<link rel="stylesheet" href="./css/dir.css">

0 commit comments

Comments
 (0)