Compare commits
60 commits
update-xco
...
ai/forgejo
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ea8038700 | ||
|
|
916218efd5 | ||
|
|
0b6882e9a3 | ||
|
|
20fe7c6b59 | ||
|
|
fd80ee6f10 | ||
|
|
ac5dacb8f1 | ||
|
|
89e0d8ec23 | ||
|
|
6afa7424fd | ||
|
|
e475cc64d9 | ||
|
|
4f71d0b979 | ||
|
|
41ee0b4d86 | ||
|
|
f8a4de3e3d | ||
|
|
d72bb9e9e4 | ||
|
|
9b9fb0af76 | ||
|
|
2334e37813 | ||
|
|
a60b90c91a | ||
|
|
851c9bf29e | ||
|
|
2231987d85 | ||
|
|
d6c8e23b6f | ||
|
|
eb8e80d3dd | ||
|
|
8cf9fd3d1a | ||
|
|
40cf264baa | ||
|
|
44ae2505f5 | ||
|
|
2ef806c38f | ||
|
|
aa5713389a | ||
|
|
992959f046 | ||
|
|
13a67f0c53 | ||
|
|
3ead36c2c7 | ||
|
|
1af38be000 | ||
|
|
9c86f58fd1 | ||
|
|
fd9be5cc06 | ||
|
|
ba301d2c37 | ||
|
|
f1a8fadf14 | ||
|
|
47ef02b780 | ||
|
|
6a2a3feb25 | ||
|
|
2a8cdc9b1b | ||
|
|
de1d86e8b7 | ||
|
|
0e862e6ff1 | ||
|
|
1f324fe7bd | ||
|
|
abbe338789 | ||
|
|
018d204bf2 | ||
|
|
13a39179b3 | ||
|
|
d79a663cf0 | ||
|
|
3e7ccfb8ab | ||
|
|
1a85654262 | ||
|
|
596259033e | ||
|
|
a032c7cfbe | ||
|
|
2249d05bb1 | ||
|
|
074b215a14 | ||
|
|
145cf37b8e | ||
|
|
414c01a66d | ||
|
|
eb9a900023 | ||
|
|
c01d70b994 | ||
|
|
3fdb4ac03e | ||
|
|
6231860a06 | ||
|
|
3fae15b62e | ||
|
|
2cded5ffb2 | ||
|
|
7536a69ec7 | ||
|
|
78e03547be | ||
|
|
5c8b9c5b05 |
8 changed files with 56 additions and 29 deletions
23
.github/workflows/build-and-release.yaml
vendored
23
.github/workflows/build-and-release.yaml
vendored
|
|
@ -15,13 +15,30 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: macos-latest
|
runs-on: macos-15
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- run: sudo xcode-select --switch /Applications/Xcode_16.2.app
|
- name: Validate release version
|
||||||
- uses: actions/checkout@v4
|
run: |
|
||||||
|
version="${{ inputs.release-version }}"
|
||||||
|
major="${version%%.*}"
|
||||||
|
if [[ ! "$major" =~ ^[0-9]+$ ]] || (( major < 6 || major > 8 )); then
|
||||||
|
echo "::error::Capacitor $version is not supported by this repository. Starting with Capacitor 9 (see https://github.com/ionic-team/capacitor/pull/8588 PR), the iOS platform is a source-first Swift package built directly from the ionic-team/capacitor repository, so SPM distribution no longer happens here. This repository only releases major versions 6, 7, and 8."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
- run: |
|
||||||
|
if [[ "${{ inputs.release-version }}" =~ ^[67]\. ]]; then
|
||||||
|
sudo xcode-select --switch /Applications/Xcode_16.2.app
|
||||||
|
else
|
||||||
|
sudo xcode-select --switch /Applications/Xcode_26.0.app
|
||||||
|
fi
|
||||||
|
- uses: actions/checkout@v7
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: brew install ghr
|
run: brew install ghr
|
||||||
|
- name: Check Simulators
|
||||||
|
run: xcrun simctl list > /dev/null
|
||||||
|
- name: Install Simulators
|
||||||
|
run: xcodebuild -downloadPlatform iOS
|
||||||
- name: Build Capacitor and Cordova
|
- name: Build Capacitor and Cordova
|
||||||
run: ./build-cap ${{ inputs.release-version }}
|
run: ./build-cap ${{ inputs.release-version }}
|
||||||
- name: Sign Capacitor xcframework
|
- name: Sign Capacitor xcframework
|
||||||
|
|
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -3,4 +3,4 @@ capacitor-checkout
|
||||||
*.zip
|
*.zip
|
||||||
.swiftpm
|
.swiftpm
|
||||||
frameworks
|
frameworks
|
||||||
|
.build
|
||||||
|
|
|
||||||
4
MEENOW-FORGEJO.md
Normal file
4
MEENOW-FORGEJO.md
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
Capacitor/Cordova 8.5.2, unchanged binary artifacts and upstream checksums.
|
||||||
|
Imported once from Ionic; future builds use only git.kico-dev.de.
|
||||||
|
Original upstream revision: 0b6882e9a3288342aacf36348e5a94e4f1dd7b13.
|
||||||
|
Licence and notices are retained from upstream. MeeNow pins this commit.
|
||||||
|
|
@ -18,13 +18,13 @@ let package = Package(
|
||||||
targets: [
|
targets: [
|
||||||
.binaryTarget(
|
.binaryTarget(
|
||||||
name: "Capacitor",
|
name: "Capacitor",
|
||||||
url: "https://github.com/ionic-team/capacitor-swift-pm/releases/download/6.2.1/Capacitor.xcframework.zip",
|
url: "https://git.kico-dev.de/martin/capacitor-swift-pm/raw/commit/916218efd53e6e646c36bbfd71e8f06c1b643fbf/artifacts/Capacitor.xcframework.zip",
|
||||||
checksum: "dad7b961661855fecd45c38b1e317f64a046323cc05d204d054ada6d5b7f4378"
|
checksum: "134c65a8bd30bfaa8ccb158d78142fa7231bf3f472e4a5d808c5fbed90fd4c75"
|
||||||
),
|
),
|
||||||
.binaryTarget(
|
.binaryTarget(
|
||||||
name: "Cordova",
|
name: "Cordova",
|
||||||
url: "https://github.com/ionic-team/capacitor-swift-pm/releases/download/6.2.1/Cordova.xcframework.zip",
|
url: "https://git.kico-dev.de/martin/capacitor-swift-pm/raw/commit/916218efd53e6e646c36bbfd71e8f06c1b643fbf/artifacts/Cordova.xcframework.zip",
|
||||||
checksum: "fb10239d76bf36787063e9a0c60219397c3648c781b8cd9e1a9e2a3990cbe5ce"
|
checksum: "57ff2c8f1e5dcd8d4379ac3cccde1407d81ccd575347dc2aff4f72272b8794a1"
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
# Experimental Swift Package Manager Support for Capacitor
|
# Swift Package Manager Support for Capacitor
|
||||||
|
|
||||||
This repo is for hosting binary xcframework releases of Capacitor and CapacitorCordova for experimental SPM support.
|
This repo is for hosting binary xcframework releases of Capacitor and CapacitorCordova for SPM support.
|
||||||
|
|
||||||
|
Only applies to Capacitor major versions 6, 7, and 8. Starting with Capacitor 9, the iOS platform is a source-first Swift package built directly from the [ionic-team/capacitor](https://github.com/ionic-team/capacitor) repository.
|
||||||
|
|
|
||||||
BIN
artifacts/Capacitor.xcframework.zip
Normal file
BIN
artifacts/Capacitor.xcframework.zip
Normal file
Binary file not shown.
BIN
artifacts/Cordova.xcframework.zip
Normal file
BIN
artifacts/Cordova.xcframework.zip
Normal file
Binary file not shown.
42
build-cap
42
build-cap
|
|
@ -1,23 +1,25 @@
|
||||||
#!/usr/bin/env bash -eoux pipefail
|
#!/usr/bin/env bash -eoux pipefail
|
||||||
|
|
||||||
build_capacitor_simulator() {
|
build_simulator() {
|
||||||
|
local SCHEME=$1
|
||||||
xcodebuild archive \
|
xcodebuild archive \
|
||||||
-scheme Capacitor \
|
-scheme $SCHEME \
|
||||||
-workspace Capacitor.xcworkspace \
|
-workspace Capacitor.xcworkspace \
|
||||||
-destination "generic/platform=iOS Simulator" \
|
-destination "generic/platform=iOS Simulator" \
|
||||||
-configuration Debug \
|
-configuration Debug \
|
||||||
-archivePath ./Build/iOS-Simulator \
|
-archivePath ./Build/$SCHEME-iOS-Simulator \
|
||||||
SKIP_INSTALL=NO \
|
SKIP_INSTALL=NO \
|
||||||
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
|
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
|
||||||
DEBUG_INFORMATION_FORMAT="dwarf-with-dsym"
|
DEBUG_INFORMATION_FORMAT="dwarf-with-dsym"
|
||||||
}
|
}
|
||||||
|
|
||||||
build_capacitor_ios() {
|
build_ios() {
|
||||||
|
local SCHEME=$1
|
||||||
xcodebuild archive \
|
xcodebuild archive \
|
||||||
-scheme Capacitor \
|
-scheme $SCHEME \
|
||||||
-workspace Capacitor.xcworkspace \
|
-workspace Capacitor.xcworkspace \
|
||||||
-destination "generic/platform=iOS" \
|
-destination "generic/platform=iOS" \
|
||||||
-archivePath ./Build/iOS \
|
-archivePath ./Build/$SCHEME-iOS \
|
||||||
SKIP_INSTALL=NO \
|
SKIP_INSTALL=NO \
|
||||||
SWIFT_SERIALIZE_DEBUGGING_OPTIONS=NO \
|
SWIFT_SERIALIZE_DEBUGGING_OPTIONS=NO \
|
||||||
DEBUG_INFORMATION_FORMAT="dwarf-with-dsym" \
|
DEBUG_INFORMATION_FORMAT="dwarf-with-dsym" \
|
||||||
|
|
@ -25,26 +27,28 @@ build_capacitor_ios() {
|
||||||
}
|
}
|
||||||
|
|
||||||
create_xcframeworks() {
|
create_xcframeworks() {
|
||||||
build_capacitor_simulator
|
build_simulator Capacitor
|
||||||
build_capacitor_ios
|
build_simulator Cordova
|
||||||
|
|
||||||
rm -rf ./Build/iOS-Simulator.xcarchive/Products/Library/Frameworks/Capacitor.framework/Frameworks
|
build_ios Capacitor
|
||||||
rm -rf ./Build/iOS.xcarchive/Products/Library/Frameworks/Capacitor.framework/Frameworks
|
build_ios Cordova
|
||||||
|
|
||||||
|
rm -rf ./Build/Capacitor-iOS-Simulator.xcarchive/Products/Library/Frameworks/Capacitor.framework/Frameworks
|
||||||
|
rm -rf ./Build/Capacitor-iOS.xcarchive/Products/Library/Frameworks/Capacitor.framework/Frameworks
|
||||||
|
|
||||||
xcodebuild -create-xcframework \
|
xcodebuild -create-xcframework \
|
||||||
-framework ./Build/iOS-Simulator.xcarchive/Products/Library/Frameworks/Capacitor.framework \
|
-framework ./Build/Capacitor-iOS-Simulator.xcarchive/Products/Library/Frameworks/Capacitor.framework \
|
||||||
-debug-symbols $PWD/Build/iOS-Simulator.xcarchive/dSYMs/Capacitor.framework.dSYM \
|
-debug-symbols $PWD/Build/Capacitor-iOS-Simulator.xcarchive/dSYMs/Capacitor.framework.dSYM \
|
||||||
-framework ./Build/iOS.xcarchive/Products/Library/Frameworks/Capacitor.framework \
|
-framework ./Build/Capacitor-iOS.xcarchive/Products/Library/Frameworks/Capacitor.framework \
|
||||||
-debug-symbols $PWD/Build/iOS.xcarchive/dSYMs/Capacitor.framework.dSYM \
|
-debug-symbols $PWD/Build/Capacitor-iOS.xcarchive/dSYMs/Capacitor.framework.dSYM \
|
||||||
-output Capacitor.xcframework
|
-output Capacitor.xcframework
|
||||||
|
|
||||||
xcodebuild -create-xcframework \
|
xcodebuild -create-xcframework \
|
||||||
-framework ./Build/iOS-Simulator.xcarchive/Products/Library/Frameworks/Cordova.framework \
|
-framework ./Build/Cordova-iOS-Simulator.xcarchive/Products/Library/Frameworks/Cordova.framework \
|
||||||
-debug-symbols $PWD/Build/iOS-Simulator.xcarchive/dSYMs/Cordova.framework.dSYM \
|
-debug-symbols $PWD/Build/Cordova-iOS-Simulator.xcarchive/dSYMs/Cordova.framework.dSYM \
|
||||||
-framework ./Build/iOS.xcarchive/Products/Library/Frameworks/Cordova.framework \
|
-framework ./Build/Cordova-iOS.xcarchive/Products/Library/Frameworks/Cordova.framework \
|
||||||
-debug-symbols $PWD/Build/iOS.xcarchive/dSYMs/Cordova.framework.dSYM \
|
-debug-symbols $PWD/Build/Cordova-iOS.xcarchive/dSYMs/Cordova.framework.dSYM \
|
||||||
-output Cordova.xcframework
|
-output Cordova.xcframework
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
git clone https://github.com/ionic-team/capacitor capacitor-checkout
|
git clone https://github.com/ionic-team/capacitor capacitor-checkout
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue