Skip to content

Commit

Permalink
feat: init game/emulator launching
Browse files Browse the repository at this point in the history
  • Loading branch information
JMBeresford committed Jul 8, 2024
1 parent 9cadfec commit a0c678f
Show file tree
Hide file tree
Showing 171 changed files with 10,896 additions and 1,234 deletions.
1,055 changes: 844 additions & 211 deletions Cargo.lock

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[workspace]
resolver = "2"
members = ["./packages/*", "./packages/client/plugins/*"]
members = ["./packages/*", "./plugins/*"]
exclude = ["**/node_modules"]
default-members = ["./packages/service/", "./packages/client/"]

[workspace.package]
edition = "2021"
Expand All @@ -10,6 +12,7 @@ readme = "./README.md"
repository = "https://github.com/JMBeresford/retrom"

[workspace.dependencies]
tauri = { version = "2.0.0-beta", features = ["tracing"] }
diesel = { version = "2.1.5", features = ["serde_json", "postgres", "numeric"] }
diesel-async = { version = "0.4.1", features = ["postgres", "bb8"] }
bb8 = "0.8"
Expand All @@ -27,7 +30,8 @@ tokio-util = { version = "0.7.11", features = ["io", "compat"] }
dotenvy = "0.15.7"
retrom-db = { path = "./packages/db", version = "0.0.2" }
retrom-codegen = { path = "./packages/codegen", version = "0.0.2" }
retrom-plugin-installer = { path = "./packages/client/plugins/retrom-plugin-installer/", version = "0.0.1" }
retrom-plugin-installer = { path = "./plugins/retrom-plugin-installer/", version = "0.0.1" }
retrom-plugin-launcher = { path = "./plugins/retrom-plugin-launcher/", version = "0.0.1" }
futures = "0.3.30"
bytes = "1.6.0"
reqwest = { version = "0.12.3", features = [
Expand All @@ -46,3 +50,6 @@ tonic-reflection = "0.11.0"
async-trait = "0.1"
tauri-plugin-http = "2.0.0-beta.9"
serde_repr = "0.1.19"

[workspace.metadata.workspaces]
allow_branch = "main"
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
},
"pnpm": {
"overrides": {
"typescript": "$typescript",
"@tauri-apps/cli": "$@tauri-apps/cli",
"@tauri-apps/api": "$@tauri-apps/api",
"@tauri-apps/plugin-fs": "$@tauri-apps/plugin-fs",
"@tauri-apps/plugin-upload": "$@tauri-apps/plugin-upload"
}
},
"dependencies": {
"typescript": "^5.5",
"@tauri-apps/api": "2.0.0-beta.13",
"@tauri-apps/plugin-fs": "2.0.0-beta.5",
"@tauri-apps/plugin-upload": "2.0.0-beta.6"
Expand Down
6 changes: 5 additions & 1 deletion packages/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ license.workspace = true
edition.workspace = true
description = "The Retrom video game library client"
rust-version = "1.60"
exclude = ["./web"]

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

[build-dependencies]
tauri-build = { version = "2.0.0-beta", features = [] }

[dependencies]
tauri = { workspace = true }
serde_json = { workspace = true }
serde = { workspace = true }
tauri = { version = "2.0.0-beta", features = ["tracing"] }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
retrom-codegen = { workspace = true }
Expand All @@ -32,7 +33,10 @@ diesel = { workspace = true }
diesel-async = { workspace = true }
bb8 = { workspace = true }
retrom-plugin-installer = { workspace = true }
retrom-plugin-launcher = { workspace = true }
tracing-futures = { workspace = true }
tauri-plugin-dialog = "2.0.0-beta.9"
tauri-plugin-shell = "2.0.0-beta.7"

[features]
# this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled.
Expand Down
7 changes: 5 additions & 2 deletions packages/client/capabilities/migrated.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@
},
"installer:allow-install-game",
"installer:allow-uninstall-game",
"installer:allow-get-game-installation-status"
"installer:allow-get-game-installation-status",
"dialog:allow-open",
"launcher:allow-play-game",
"launcher:allow-stop-game",
"launcher:allow-get-game-play-status"
]
}

2 changes: 1 addition & 1 deletion packages/client/gen/schemas/acl-manifests.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/client/gen/schemas/capabilities.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["path:default","event:default","window:default","app:default","resources:default","menu:default","tray:default","fs:default","fs:deny-default","fs:allow-appdata-write-recursive",{"identifier":"fs:allow-exists","allow":[{"path":"$APPDATA/*"},{"path":"$APPDATA"}]},{"identifier":"fs:allow-mkdir","allow":[{"path":"$APPDATA"}]},"installer:allow-install-game","installer:allow-uninstall-game","installer:allow-get-game-installation-status"]}}
{"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["path:default","event:default","window:default","app:default","resources:default","menu:default","tray:default","fs:default","fs:deny-default","fs:allow-appdata-write-recursive",{"identifier":"fs:allow-exists","allow":[{"path":"$APPDATA/*"},{"path":"$APPDATA"}]},{"identifier":"fs:allow-mkdir","allow":[{"path":"$APPDATA"}]},"installer:allow-install-game","installer:allow-uninstall-game","installer:allow-get-game-installation-status","dialog:allow-open","launcher:allow-play-game","launcher:allow-stop-game","launcher:allow-get-game-play-status"]}}
Loading

0 comments on commit a0c678f

Please sign in to comment.