Skip to content

Commit

Permalink
Merge pull request #313 from boozook/fix-simulator-utils
Browse files Browse the repository at this point in the history
Fix `simulator-utils` bug: can't run pdx on macOs by relative path
  • Loading branch information
github-actions[bot] authored Apr 17, 2024
2 parents b515c87 + a5d894f commit a2d3649
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions 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 support/sim-ctrl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "playdate-simulator-utils"
version = "0.1.4"
version = "0.1.5"
readme = "README.md"
description = "Cross-platform utils to deal with Playdate Simulator."
keywords = ["playdate", "sdk", "utils"]
Expand Down
2 changes: 2 additions & 0 deletions support/sim-ctrl/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub async fn run(pdx: &Path, sdk: Option<&Path>) -> Result<(), Error> {

#[allow(unused_mut)]
let mut cmd = command(pdx, sdk)?;

#[cfg(any(feature = "tokio", feature = "async-std"))]
let mut cmd = Command::from(cmd);

Expand All @@ -29,6 +30,7 @@ pub async fn run(pdx: &Path, sdk: Option<&Path>) -> Result<(), Error> {

#[cfg_attr(feature = "tracing", tracing::instrument)]
pub fn command(pdx: &Path, sdk: Option<&Path>) -> Result<std::process::Command, Error> {
let pdx = pdx.canonicalize()?;
let sdk = sdk.map_or_else(Sdk::try_new, Sdk::try_new_exact)?;

let (pwd, sim) = if cfg!(target_os = "macos") {
Expand Down
2 changes: 1 addition & 1 deletion support/tool/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "playdate-tool"
version = "0.3.1"
version = "0.3.2"
readme = "README.md"
description = "Tool for interaction with Playdate device and sim."
keywords = ["playdate", "usb", "utility"]
Expand Down
2 changes: 1 addition & 1 deletion support/tool/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ pub struct Install {
pub pdx: PathBuf,

/// Allow to overwrite existing files.
#[arg(long, default_value_t = false)]
#[arg(long, short, default_value_t = false)]
pub force: bool,

#[command(flatten)]
Expand Down

0 comments on commit a2d3649

Please sign in to comment.