Skip to content

Commit

Permalink
cargo-coupler bundle: organization
Browse files Browse the repository at this point in the history
  • Loading branch information
micahrj committed Jan 9, 2024
1 parent 523a305 commit acd79cd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions cargo-coupler/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,16 @@ struct PackageInfo {
formats: Vec<Format>,
}

fn main() {
let Cargo::Coupler(cmd) = Cargo::parse();

match cmd {
Coupler::Bundle(cmd) => {
bundle(&cmd);
}
}
}

fn bundle(cmd: &Bundle) {
// Query `rustc` for host target if no --target argument was given

Expand Down Expand Up @@ -613,13 +623,3 @@ fn macos_bundle_info(package_info: &PackageInfo, bundle_path: &Path) {
fs::write(bundle_path.join("Contents/Info.plist"), plist).unwrap();
fs::write(bundle_path.join("Contents/PkgInfo"), "BNDL????").unwrap();
}

fn main() {
let Cargo::Coupler(cmd) = Cargo::parse();

match cmd {
Coupler::Bundle(cmd) => {
bundle(&cmd);
}
}
}

0 comments on commit acd79cd

Please sign in to comment.