-
-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathCargo.toml
More file actions
79 lines (71 loc) · 3.58 KB
/
Copy pathCargo.toml
File metadata and controls
79 lines (71 loc) · 3.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[package]
name = "gmodpatchtool"
version = "20260623.0.0"
authors = ["Solstice Game Studios <contact@solsticegamestudios.com>"]
license = "GPL-3.0-only"
edition = "2024"
[package.metadata.winresource]
FileDescription = "GModPatchTool"
ProductName = "GModPatchTool"
LegalCopyright = "Solstice Game Studios <contact@solsticegamestudios.com>"
[dependencies]
blake3 = { version = "1.8", features = ["mmap", "rayon"] }
bytes = { version = "1.11", optional = true }
clap = { version = "4.5", features = ["derive"] }
crossterm = { version = "0.29" }
dirs = { version = "6.0", optional = true }
iced = { version = "0.14", optional = true }
iced_term = { version = "0.8", optional = true }
image = { version = "0.25", optional = true, default-features = false, features = ["png"] }
indicatif = { version = "0.18", optional = true }
indexmap = { version = "2.12", features = ["rayon", "serde"] }
keyvalues-serde = { version = "0.2", optional = true }
open = { version = "5.3", optional = true }
phf = { version = "0.14", features = ["macros"], optional = true }
qbsdiff = "1.4"
rayon = { version = "1.11" }
regex = "1.12"
reqwest = { version = "0.13", default-features = false, features = ["http2", "rustls", "json", "gzip", "brotli", "zstd", "socks", "system-proxy"], optional = true }
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0" }
serde_path_to_error = { version = "0.1" }
steamid = { version = "0.1", git = "https://github.com/JohnPeel/steamid", rev = "b19ddd38d9497329b9e3ba90ac27b267835161c3", optional = true }
sysinfo = { version = "0.39", optional = true }
thiserror = { version = "2.0", optional = true }
tokio = { version = "1.48", features = ["full"], optional = true }
tracing = { version = "0.1", optional = true }
tracing-subscriber = { version = "0.3", features = ["env-filter", "tracing-log"], optional = true }
windows-registry = { version = "0.6", optional = true }
zstd = "0.13"
[target.'cfg(windows)'.dependencies]
is_elevated = "0.1"
dunce = "1.0"
win32console = "0.1"
[features]
default = ["patch"]
#default = ["generate"]
patch = ["dep:bytes", "dep:dirs", "dep:iced", "dep:iced_term", "dep:image", "dep:indicatif", "dep:keyvalues-serde", "dep:open", "dep:phf", "dep:reqwest", "dep:steamid", "dep:sysinfo", "dep:thiserror", "dep:tokio", "dep:tracing", "dep:tracing-subscriber", "dep:windows-registry"]
generate = []
[profile.release]
lto = "thin"
codegen-units = 1
# Line info for crash symbolication: in the pdb on Windows, the dSYM on macOS (CI packs it), and the binary on Linux
debug = "line-tables-only"
# Build config
[target.'cfg(windows)'.build-dependencies]
winresource = "0.1"
[package.metadata.packager]
product-name = "GModPatchTool"
identifier = "com.solsticegamestudios.gmodpatchtool"
license-file = "LICENSE.txt"
# Build both arches + lipo so cargo-packager (target-triple below) bundles universal2
before-packaging-command = "rustup target add aarch64-apple-darwin x86_64-apple-darwin && cargo build --release --locked --target aarch64-apple-darwin && cargo build --release --locked --target x86_64-apple-darwin && mkdir -p target/universal-apple-darwin/release && lipo -create -output target/universal-apple-darwin/release/gmodpatchtool target/aarch64-apple-darwin/release/gmodpatchtool target/x86_64-apple-darwin/release/gmodpatchtool"
target-triple = "universal-apple-darwin"
binaries = [
{ path = "gmodpatchtool", main = true }
]
formats = ["dmg"]
resources = ["GModPatchToolLogo.icns"]
icons = ["GModPatchToolLogo.icns"]
macos = { minimum-system-version = "11.0" }
#dmg = { background = "macos-background.png", window-size = "640 360", app-position = "", app-folder-position = "" }