macos: use xcodeproj

This commit is contained in:
Mitchell Hashimoto
2023-02-14 08:32:43 -08:00
parent 8035865596
commit 8fedbf84d4
18 changed files with 127 additions and 48 deletions

View File

@ -0,0 +1,11 @@
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@ -0,0 +1,68 @@
{
"images" : [
{
"filename" : "Ghostty_256x256x32 6.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "16x16"
},
{
"filename" : "Ghostty_256x256x32 5.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "16x16"
},
{
"filename" : "Ghostty_256x256x32 4.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "32x32"
},
{
"filename" : "Ghostty_256x256x32 3.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "32x32"
},
{
"filename" : "Ghostty_256x256x32 2.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "128x128"
},
{
"filename" : "Ghostty_256x256x32 1.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "128x128"
},
{
"filename" : "Ghostty_256x256x32.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "256x256"
},
{
"filename" : "Ghostty_512x512x32.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "256x256"
},
{
"filename" : "Ghostty_512x512x32 1.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "512x512"
},
{
"filename" : "Ghostty_512x512x32 2.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "512x512"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

View File

@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
</dict>
</plist>

View File

@ -1,27 +0,0 @@
// swift-tools-version: 5.7
// The swift-tools-version declares the minimum version of Swift required to
// build this package.
import PackageDescription
let package = Package(
name: "Ghostty",
platforms: [
// SwiftUI
.macOS(.v11),
],
products: [
.executable(
name: "Ghostty",
targets: ["Ghostty"]),
],
dependencies: [],
targets: [
.executableTarget(
name: "Ghostty",
dependencies: ["GhosttyKit"]),
.binaryTarget(
name: "GhosttyKit",
path: "GhosttyKit.xcframework"),
]
)

View File

@ -0,0 +1,19 @@
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundColor(.accentColor)
Text("Hello, world!")
}
.padding()
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}

View File

@ -1,21 +0,0 @@
import SwiftUI
import GhosttyKit
@main
struct MyApp: App {
@State private var num = ghostty_hello()
var body: some Scene {
WindowGroup {
Text(String(num))
.font(.largeTitle)
}
}
}
struct ContentView: View {
var body: some View {
Text("Ghostty")
.font(.largeTitle)
}
}

View File

@ -0,0 +1,13 @@
import SwiftUI
import GhosttyKit
@main
struct GhosttyApp: App {
@State private var num = ghostty_hello()
var body: some Scene {
WindowGroup {
Text(String(num)).font(.largeTitle)
}
}
}