Skip to content

Commit

Permalink
Merge pull request #5 from Kyome22/xcframework-easily
Browse files Browse the repository at this point in the history
Make it usable without building XCFramework for users.
  • Loading branch information
Kyome22 authored Jan 12, 2025
2 parents 89a2184 + e0aca37 commit 4cd6e21
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 35 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ Packages.resolved

# Framework
*.framework/
*.xcframework/
*.zip
build/
28 changes: 0 additions & 28 deletions Framework/Product/OpenMultitouchSupportXCF.xcframework/Info.plist

This file was deleted.

3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ let package = Package(
targets: [
.binaryTarget(
name: "OpenMultitouchSupportXCF",
path: "Framework/Product/OpenMultitouchSupportXCF.xcframework"
url: "https://github.com/Kyome22/OpenMultitouchSupport/releases/download/3.0.0/OpenMultitouchSupportXCF.xcframework.zip",
checksum: "9d430a4f675bddd4996405a45fcc1e0584d1f7a975c75c0e829915c15788a03c"
),
.target(
name: "OpenMultitouchSupport",
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ This library refers the following frameworks very much. Special Thanks!

<img src="Screenshots/demo.png" alt="demo" width="632px" />

## Build OpenMultitouchSupportXCF.xcframework

```sh
$ ./build_framework.sh
```

## Usage

App SandBox must be disabled to use OpenMultitouchSupport.
Expand Down
7 changes: 7 additions & 0 deletions UPDATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# アップデート方法

1. `build_framework.sh` を実行
2. 出力された Checksum をメモ
3. `Package.swift`の Checksum とタグを更新
4. タグを打ちリリースを作る
5. `Framework/Product/OpenMultitouchSupportXCF.xcframework.zip`をアップロード
11 changes: 11 additions & 0 deletions build_framework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,14 @@ fi
xcodebuild -create-xcframework \
-framework $FRAMEWORK_PATH \
-output $XC_FRAMEWORK_PATH

XC_FRAMEWORK_ZIP_PATH="${XC_FRAMEWORK_PATH}.zip"
if [ -e $XC_FRAMEWORK_ZIP_PATH ]; then
rm -rf $XC_FRAMEWORK_ZIP_PATH
fi

zip -Xr $XC_FRAMEWORK_ZIP_PATH $XC_FRAMEWORK_PATH
ls -Slh $XC_FRAMEWORK_ZIP_PATH | awk '{print $5, $9}'

CHECKSUM=$(swift package compute-checksum $XC_FRAMEWORK_ZIP_PATH)
echo "Checksum: ${CHECKSUM}"

0 comments on commit 4cd6e21

Please # to comment.