Skip to content

Commit

Permalink
Add macos app
Browse files Browse the repository at this point in the history
  • Loading branch information
swiftyfinch committed Apr 28, 2024
1 parent e342858 commit d265261
Show file tree
Hide file tree
Showing 41 changed files with 1,833 additions and 5 deletions.
26 changes: 22 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ lint:
swiftlint --fix --quiet
swiftlint --strict --quiet

.PHONY: install
.PHONY: install-cli
install:
swift build --arch arm64 -c release
cp -f `swift build --arch arm64 -c release --show-bin-path`/xtree ~/.local/bin/xtree

.PHONY: release
release:
rm -rf Release
.PHONY: release-cli
release-cli:
mkdir -p Release

swift package clean
Expand All @@ -32,3 +31,22 @@ release:
strip -rSTx Release/xtree
cd Release && zip -r arm64.zip xtree
cd Release && mv xtree xtree-arm64

.PHONY: release-app
release-app:
rm -rf Release/build
rm -rf Release/XTree.app
rm -rf Release/XTree.zip
mkdir -p Release

xcodebuild \
-workspace XTree.xcworkspace \
-scheme XTree \
-configuration Release \
-sdk macosx \
-arch arm64 \
-derivedDataPath Release/build \
-clonedSourcePackagesDirPath "${HOME}/Library/Developer/Xcode/DerivedData/XTree" \
| xcbeautify
mv Release/build/Build/Products/Release/XTree.app Release/XTree.app
cd Release && zip -r XTree.zip XTree.app
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ let package = Package(
name: "xtree",
platforms: [.macOS(.v13)],
products: [
.executable(name: "xtree", targets: ["CLI"])
.executable(name: "xtree", targets: ["CLI"]),
.library(name: "XTreeKit", targets: ["XTreeKit"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.3.1"),
Expand Down
10 changes: 10 additions & 0 deletions XTree.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions XTree.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
86 changes: 86 additions & 0 deletions XTree.xcworkspace/xcshareddata/swiftpm/Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"pins" : [
{
"identity" : "aexml",
"kind" : "remoteSourceControl",
"location" : "https://github.com/tadija/AEXML.git",
"state" : {
"revision" : "38f7d00b23ecd891e1ee656fa6aeebd6ba04ecc3",
"version" : "4.6.1"
}
},
{
"identity" : "fish",
"kind" : "remoteSourceControl",
"location" : "https://github.com/swiftyfinch/Fish",
"state" : {
"revision" : "ad158476e46ee30052378ba0b49bbe3c5b53b57f",
"version" : "0.1.2"
}
},
{
"identity" : "pathkit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/kylef/PathKit.git",
"state" : {
"revision" : "3bfd2737b700b9a36565a8c94f4ad2b050a5e574",
"version" : "1.0.1"
}
},
{
"identity" : "rainbow",
"kind" : "remoteSourceControl",
"location" : "https://github.com/onevcat/Rainbow",
"state" : {
"revision" : "e0dada9cd44e3fa7ec3b867e49a8ddbf543e3df3",
"version" : "4.0.1"
}
},
{
"identity" : "spectre",
"kind" : "remoteSourceControl",
"location" : "https://github.com/kylef/Spectre.git",
"state" : {
"revision" : "26cc5e9ae0947092c7139ef7ba612e34646086c7",
"version" : "0.10.1"
}
},
{
"identity" : "swift-argument-parser",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-argument-parser",
"state" : {
"revision" : "46989693916f56d1186bd59ac15124caef896560",
"version" : "1.3.1"
}
},
{
"identity" : "xcodeproj",
"kind" : "remoteSourceControl",
"location" : "https://github.com/tuist/XcodeProj",
"state" : {
"revision" : "313aaf1ad612135b7b0ccf731c86b5c07bf149b5",
"version" : "8.20.0"
}
},
{
"identity" : "yams",
"kind" : "remoteSourceControl",
"location" : "https://github.com/jpsim/Yams",
"state" : {
"revision" : "9234124cff5e22e178988c18d8b95a8ae8007f76",
"version" : "5.1.2"
}
},
{
"identity" : "zipfoundation",
"kind" : "remoteSourceControl",
"location" : "https://github.com/weichsel/ZIPFoundation",
"state" : {
"revision" : "02b6abe5f6eef7e3cbd5f247c5cc24e246efcfe0",
"version" : "0.9.19"
}
}
],
"version" : 2
}
Loading

0 comments on commit d265261

Please sign in to comment.