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:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: macos-15
|
runs-on: macos-14
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- name: Validate release version
|
- run: sudo xcode-select --switch /Applications/Xcode_15.1.app
|
||||||
run: |
|
- uses: actions/checkout@v4
|
||||||
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
|
|
||||||
|
|
|
||||||
|
|
@ -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: [
|
targets: [
|
||||||
.binaryTarget(
|
.binaryTarget(
|
||||||
name: "Capacitor",
|
name: "Capacitor",
|
||||||
url: "https://git.kico-dev.de/martin/capacitor-swift-pm/raw/commit/916218efd53e6e646c36bbfd71e8f06c1b643fbf/artifacts/Capacitor.xcframework.zip",
|
url: "https://github.com/ionic-team/capacitor-swift-pm/releases/download/6.1.2/Capacitor.xcframework.zip",
|
||||||
checksum: "134c65a8bd30bfaa8ccb158d78142fa7231bf3f472e4a5d808c5fbed90fd4c75"
|
checksum: "d61311a484f20d4e256e12a56b2cb2105e1353414de251cdfceff1549bb7ac94"
|
||||||
),
|
),
|
||||||
.binaryTarget(
|
.binaryTarget(
|
||||||
name: "Cordova",
|
name: "Cordova",
|
||||||
url: "https://git.kico-dev.de/martin/capacitor-swift-pm/raw/commit/916218efd53e6e646c36bbfd71e8f06c1b643fbf/artifacts/Cordova.xcframework.zip",
|
url: "https://github.com/ionic-team/capacitor-swift-pm/releases/download/6.1.2/Cordova.xcframework.zip",
|
||||||
checksum: "57ff2c8f1e5dcd8d4379ac3cccde1407d81ccd575347dc2aff4f72272b8794a1"
|
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.
|
This repo is for hosting binary xcframework releases of Capacitor and CapacitorCordova for experimental 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.
|
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
47
build-cap
47
build-cap
|
|
@ -1,25 +1,22 @@
|
||||||
#!/usr/bin/env bash -eoux pipefail
|
#!/usr/bin/env bash -eoux pipefail
|
||||||
|
|
||||||
build_simulator() {
|
build_capacitor_simulator() {
|
||||||
local SCHEME=$1
|
|
||||||
xcodebuild archive \
|
xcodebuild archive \
|
||||||
-scheme $SCHEME \
|
-scheme Capacitor \
|
||||||
-workspace Capacitor.xcworkspace \
|
-workspace Capacitor.xcworkspace \
|
||||||
-destination "generic/platform=iOS Simulator" \
|
-destination "generic/platform=iOS Simulator" \
|
||||||
-configuration Debug \
|
-archivePath ./Build/iOS-Simulator \
|
||||||
-archivePath ./Build/$SCHEME-iOS-Simulator \
|
-configuration Release \
|
||||||
SKIP_INSTALL=NO \
|
SKIP_INSTALL=NO \
|
||||||
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
|
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
|
||||||
DEBUG_INFORMATION_FORMAT="dwarf-with-dsym"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
build_ios() {
|
build_capacitor_ios() {
|
||||||
local SCHEME=$1
|
|
||||||
xcodebuild archive \
|
xcodebuild archive \
|
||||||
-scheme $SCHEME \
|
-scheme Capacitor \
|
||||||
-workspace Capacitor.xcworkspace \
|
-workspace Capacitor.xcworkspace \
|
||||||
-destination "generic/platform=iOS" \
|
-destination "generic/platform=iOS" \
|
||||||
-archivePath ./Build/$SCHEME-iOS \
|
-archivePath ./Build/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" \
|
||||||
|
|
@ -27,28 +24,26 @@ build_ios() {
|
||||||
}
|
}
|
||||||
|
|
||||||
create_xcframeworks() {
|
create_xcframeworks() {
|
||||||
build_simulator Capacitor
|
build_capacitor_simulator
|
||||||
build_simulator Cordova
|
build_capacitor_ios
|
||||||
|
|
||||||
build_ios Capacitor
|
rm -rf ./Build/iOS-Simulator.xcarchive/Products/Library/Frameworks/Capacitor.framework/Frameworks
|
||||||
build_ios Cordova
|
rm -rf ./Build/iOS.xcarchive/Products/Library/Frameworks/Capacitor.framework/Frameworks
|
||||||
|
|
||||||
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/Capacitor-iOS-Simulator.xcarchive/Products/Library/Frameworks/Capacitor.framework \
|
-framework ./Build/iOS-Simulator.xcarchive/Products/Library/Frameworks/Capacitor.framework \
|
||||||
-debug-symbols $PWD/Build/Capacitor-iOS-Simulator.xcarchive/dSYMs/Capacitor.framework.dSYM \
|
-debug-symbols $PWD/Build/iOS-Simulator.xcarchive/dSYMs/Capacitor.framework.dSYM \
|
||||||
-framework ./Build/Capacitor-iOS.xcarchive/Products/Library/Frameworks/Capacitor.framework \
|
-framework ./Build/iOS.xcarchive/Products/Library/Frameworks/Capacitor.framework \
|
||||||
-debug-symbols $PWD/Build/Capacitor-iOS.xcarchive/dSYMs/Capacitor.framework.dSYM \
|
-debug-symbols $PWD/Build/iOS.xcarchive/dSYMs/Capacitor.framework.dSYM \
|
||||||
-output Capacitor.xcframework
|
-output Capacitor.xcframework
|
||||||
|
|
||||||
xcodebuild -create-xcframework \
|
xcodebuild -create-xcframework \
|
||||||
-framework ./Build/Cordova-iOS-Simulator.xcarchive/Products/Library/Frameworks/Cordova.framework \
|
-framework ./Build/iOS-Simulator.xcarchive/Products/Library/Frameworks/Cordova.framework \
|
||||||
-debug-symbols $PWD/Build/Cordova-iOS-Simulator.xcarchive/dSYMs/Cordova.framework.dSYM \
|
-debug-symbols $PWD/Build/iOS-Simulator.xcarchive/dSYMs/Cordova.framework.dSYM \
|
||||||
-framework ./Build/Cordova-iOS.xcarchive/Products/Library/Frameworks/Cordova.framework \
|
-framework ./Build/iOS.xcarchive/Products/Library/Frameworks/Cordova.framework \
|
||||||
-debug-symbols $PWD/Build/Cordova-iOS.xcarchive/dSYMs/Cordova.framework.dSYM \
|
-debug-symbols $PWD/Build/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