Compare commits
No commits in common. "ai/forgejo-capacitor-8-5-2" and "6.x" have entirely different histories.
ai/forgejo
...
6.x
8 changed files with 31 additions and 59 deletions
23
.github/workflows/build-and-release.yaml
vendored
23
.github/workflows/build-and-release.yaml
vendored
|
|
@ -15,30 +15,13 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: macos-15
|
||||
runs-on: macos-14
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- name: Validate release version
|
||||
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
|
||||
- run: sudo xcode-select --switch /Applications/Xcode_15.1.app
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install dependencies
|
||||
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
|
||||
run: ./build-cap ${{ inputs.release-version }}
|
||||
- name: Sign Capacitor xcframework
|
||||
|
|
|
|||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -3,4 +3,4 @@ capacitor-checkout
|
|||
*.zip
|
||||
.swiftpm
|
||||
frameworks
|
||||
.build
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
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: [
|
||||
.binaryTarget(
|
||||
name: "Capacitor",
|
||||
url: "https://git.kico-dev.de/martin/capacitor-swift-pm/raw/commit/916218efd53e6e646c36bbfd71e8f06c1b643fbf/artifacts/Capacitor.xcframework.zip",
|
||||
checksum: "134c65a8bd30bfaa8ccb158d78142fa7231bf3f472e4a5d808c5fbed90fd4c75"
|
||||
url: "https://github.com/ionic-team/capacitor-swift-pm/releases/download/6.1.2/Capacitor.xcframework.zip",
|
||||
checksum: "d61311a484f20d4e256e12a56b2cb2105e1353414de251cdfceff1549bb7ac94"
|
||||
),
|
||||
.binaryTarget(
|
||||
name: "Cordova",
|
||||
url: "https://git.kico-dev.de/martin/capacitor-swift-pm/raw/commit/916218efd53e6e646c36bbfd71e8f06c1b643fbf/artifacts/Cordova.xcframework.zip",
|
||||
checksum: "57ff2c8f1e5dcd8d4379ac3cccde1407d81ccd575347dc2aff4f72272b8794a1"
|
||||
url: "https://github.com/ionic-team/capacitor-swift-pm/releases/download/6.1.2/Cordova.xcframework.zip",
|
||||
checksum: "c57202276f3c0de513133122a4f25040886d69c1e8bf8814206dee1af5f610fb"
|
||||
)
|
||||
]
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
# Swift Package Manager Support for Capacitor
|
||||
# Experimental Swift Package Manager Support for Capacitor
|
||||
|
||||
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.
|
||||
This repo is for hosting binary xcframework releases of Capacitor and CapacitorCordova for experimental SPM support.
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
47
build-cap
47
build-cap
|
|
@ -1,25 +1,22 @@
|
|||
#!/usr/bin/env bash -eoux pipefail
|
||||
|
||||
build_simulator() {
|
||||
local SCHEME=$1
|
||||
build_capacitor_simulator() {
|
||||
xcodebuild archive \
|
||||
-scheme $SCHEME \
|
||||
-scheme Capacitor \
|
||||
-workspace Capacitor.xcworkspace \
|
||||
-destination "generic/platform=iOS Simulator" \
|
||||
-configuration Debug \
|
||||
-archivePath ./Build/$SCHEME-iOS-Simulator \
|
||||
-archivePath ./Build/iOS-Simulator \
|
||||
-configuration Release \
|
||||
SKIP_INSTALL=NO \
|
||||
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
|
||||
DEBUG_INFORMATION_FORMAT="dwarf-with-dsym"
|
||||
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
|
||||
}
|
||||
|
||||
build_ios() {
|
||||
local SCHEME=$1
|
||||
build_capacitor_ios() {
|
||||
xcodebuild archive \
|
||||
-scheme $SCHEME \
|
||||
-scheme Capacitor \
|
||||
-workspace Capacitor.xcworkspace \
|
||||
-destination "generic/platform=iOS" \
|
||||
-archivePath ./Build/$SCHEME-iOS \
|
||||
-archivePath ./Build/iOS \
|
||||
SKIP_INSTALL=NO \
|
||||
SWIFT_SERIALIZE_DEBUGGING_OPTIONS=NO \
|
||||
DEBUG_INFORMATION_FORMAT="dwarf-with-dsym" \
|
||||
|
|
@ -27,28 +24,26 @@ build_ios() {
|
|||
}
|
||||
|
||||
create_xcframeworks() {
|
||||
build_simulator Capacitor
|
||||
build_simulator Cordova
|
||||
build_capacitor_simulator
|
||||
build_capacitor_ios
|
||||
|
||||
build_ios Capacitor
|
||||
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
|
||||
rm -rf ./Build/iOS-Simulator.xcarchive/Products/Library/Frameworks/Capacitor.framework/Frameworks
|
||||
rm -rf ./Build/iOS.xcarchive/Products/Library/Frameworks/Capacitor.framework/Frameworks
|
||||
|
||||
xcodebuild -create-xcframework \
|
||||
-framework ./Build/Capacitor-iOS-Simulator.xcarchive/Products/Library/Frameworks/Capacitor.framework \
|
||||
-debug-symbols $PWD/Build/Capacitor-iOS-Simulator.xcarchive/dSYMs/Capacitor.framework.dSYM \
|
||||
-framework ./Build/Capacitor-iOS.xcarchive/Products/Library/Frameworks/Capacitor.framework \
|
||||
-debug-symbols $PWD/Build/Capacitor-iOS.xcarchive/dSYMs/Capacitor.framework.dSYM \
|
||||
-framework ./Build/iOS-Simulator.xcarchive/Products/Library/Frameworks/Capacitor.framework \
|
||||
-debug-symbols $PWD/Build/iOS-Simulator.xcarchive/dSYMs/Capacitor.framework.dSYM \
|
||||
-framework ./Build/iOS.xcarchive/Products/Library/Frameworks/Capacitor.framework \
|
||||
-debug-symbols $PWD/Build/iOS.xcarchive/dSYMs/Capacitor.framework.dSYM \
|
||||
-output Capacitor.xcframework
|
||||
|
||||
xcodebuild -create-xcframework \
|
||||
-framework ./Build/Cordova-iOS-Simulator.xcarchive/Products/Library/Frameworks/Cordova.framework \
|
||||
-debug-symbols $PWD/Build/Cordova-iOS-Simulator.xcarchive/dSYMs/Cordova.framework.dSYM \
|
||||
-framework ./Build/Cordova-iOS.xcarchive/Products/Library/Frameworks/Cordova.framework \
|
||||
-debug-symbols $PWD/Build/Cordova-iOS.xcarchive/dSYMs/Cordova.framework.dSYM \
|
||||
-framework ./Build/iOS-Simulator.xcarchive/Products/Library/Frameworks/Cordova.framework \
|
||||
-debug-symbols $PWD/Build/iOS-Simulator.xcarchive/dSYMs/Cordova.framework.dSYM \
|
||||
-framework ./Build/iOS.xcarchive/Products/Library/Frameworks/Cordova.framework \
|
||||
-debug-symbols $PWD/Build/iOS.xcarchive/dSYMs/Cordova.framework.dSYM \
|
||||
-output Cordova.xcframework
|
||||
|
||||
}
|
||||
|
||||
git clone https://github.com/ionic-team/capacitor capacitor-checkout
|
||||
|
|
|
|||
Loading…
Reference in a new issue