mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
build: just copy xcframework
This commit is contained in:
26
build.zig
26
build.zig
@ -157,32 +157,6 @@ pub fn build(b: *std.build.Builder) !void {
|
|||||||
});
|
});
|
||||||
xcframework.step.dependOn(&static_lib.step);
|
xcframework.step.dependOn(&static_lib.step);
|
||||||
macapp.dependOn(&xcframework.step);
|
macapp.dependOn(&xcframework.step);
|
||||||
|
|
||||||
// Build our swift app
|
|
||||||
const swift_build = SwiftBuildStep.create(b, .{
|
|
||||||
.product = "Ghostty",
|
|
||||||
.target = target,
|
|
||||||
.optimize = mode,
|
|
||||||
.cwd = .{ .path = "macos" },
|
|
||||||
});
|
|
||||||
macapp.dependOn(&swift_build.step);
|
|
||||||
|
|
||||||
// Build our app bundle
|
|
||||||
macapp.dependOn(&b.addInstallFileWithDir(
|
|
||||||
.{ .generated = &swift_build.bin_path },
|
|
||||||
.prefix,
|
|
||||||
"Ghostty.app/Contents/MacOS/ghostty",
|
|
||||||
).step);
|
|
||||||
macapp.dependOn(&b.addInstallFileWithDir(
|
|
||||||
.{ .path = "dist/macos/Info.plist" },
|
|
||||||
.prefix,
|
|
||||||
"Ghostty.app/Contents/Info.plist",
|
|
||||||
).step);
|
|
||||||
macapp.dependOn(&b.addInstallFileWithDir(
|
|
||||||
.{ .path = "dist/macos/Ghostty.icns" },
|
|
||||||
.prefix,
|
|
||||||
"Ghostty.app/Contents/Resources/Ghostty.icns",
|
|
||||||
).step);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// wasm
|
// wasm
|
||||||
|
Reference in New Issue
Block a user