revert changes for swift
This commit is contained in:
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
@@ -9,7 +9,6 @@ on:
|
|||||||
- '**.md'
|
- '**.md'
|
||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
- '.github/**'
|
- '.github/**'
|
||||||
- 'Package.swift'
|
|
||||||
- '!.github/workflows/release.yml'
|
- '!.github/workflows/release.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -73,21 +72,15 @@ jobs:
|
|||||||
- name: zip
|
- name: zip
|
||||||
run: |
|
run: |
|
||||||
tree
|
tree
|
||||||
rm -f ./bin/*.h
|
rm -f /*.h
|
||||||
rm ./bin/hiddify-libcore*sources* ||echo "no source"
|
rm ./hiddify-libcore*sources* ||echo "no source"
|
||||||
rm ./bin/hiddify-libcore-macos-a*.dylib || echo "no macos arm and amd"
|
rm ./hiddify-libcore-macos-a*.dylib || echo "no macos arm and amd"
|
||||||
if [[ "${{ matrix.job.target }}" == "ios" ]];then
|
if [[ "${{ matrix.job.target }}" == "ios" ]];then
|
||||||
cd bin
|
tar -czvf hiddify-libcore-ios.xcframework.tar.gz hiddify-libcore-ios.xcframework
|
||||||
zip -r hiddify-libcore-ios.xcframework.zip hiddify-libcore-ios.xcframework
|
|
||||||
rm -rf hiddify-libcore-ios.xcframework
|
rm -rf hiddify-libcore-ios.xcframework
|
||||||
|
|
||||||
else
|
else
|
||||||
gzip -r -S ".gz" ./bin/hiddify-libcore*
|
gzip -r -S ".gz" ./hiddify-libcore*
|
||||||
fi
|
fi
|
||||||
- name: Calculate SHA256 Checksum
|
|
||||||
if: startsWith(matrix.job.target,'ios')
|
|
||||||
run: |
|
|
||||||
sha256sum hiddify-libcore-ios.xcframework.zip | awk '{print $1}'> hiddify-libcore-ios.xcframework.zip.sha256
|
|
||||||
working-directory: bin
|
working-directory: bin
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
if: ${{ success() }}
|
if: ${{ success() }}
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<Workspace
|
|
||||||
version = "1.0">
|
|
||||||
<FileRef
|
|
||||||
location = "self:">
|
|
||||||
</FileRef>
|
|
||||||
</Workspace>
|
|
||||||
Binary file not shown.
@@ -1,32 +0,0 @@
|
|||||||
<?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>SchemeUserState</key>
|
|
||||||
<dict>
|
|
||||||
<key>Libcore.xcscheme_^#shared#^_</key>
|
|
||||||
<dict>
|
|
||||||
<key>orderHint</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<key>hiddify-next-core-Package.xcscheme_^#shared#^_</key>
|
|
||||||
<dict>
|
|
||||||
<key>orderHint</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<key>SuppressBuildableAutocreation</key>
|
|
||||||
<dict>
|
|
||||||
<key>Libcore</key>
|
|
||||||
<dict>
|
|
||||||
<key>primary</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<key>hiddify-next-core</key>
|
|
||||||
<dict>
|
|
||||||
<key>primary</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
3
Makefile
3
Makefile
@@ -60,12 +60,11 @@ release: # Create a new tag for release.
|
|||||||
VERSION_STR="$${VERSION_ARRAY[0]}.$${VERSION_ARRAY[1]}.$${VERSION_ARRAY[2]}" && \
|
VERSION_STR="$${VERSION_ARRAY[0]}.$${VERSION_ARRAY[1]}.$${VERSION_ARRAY[2]}" && \
|
||||||
BUILD_NUMBER=$$(( $${VERSION_ARRAY[0]} * 10000 + $${VERSION_ARRAY[1]} * 100 + $${VERSION_ARRAY[2]} )) && \
|
BUILD_NUMBER=$$(( $${VERSION_ARRAY[0]} * 10000 + $${VERSION_ARRAY[1]} * 100 + $${VERSION_ARRAY[2]} )) && \
|
||||||
echo "version: $${VERSION_STR}+$${BUILD_NUMBER}" && \
|
echo "version: $${VERSION_STR}+$${BUILD_NUMBER}" && \
|
||||||
sed -i "s/^let version: .*/let version = \"v$${VERSION_STR}\"/g" Package.swift && \
|
|
||||||
sed -i -e "s|<key>CFBundleVersion</key>\s*<string>[^<]*</string>|<key>CFBundleVersion</key><string>$${VERSION_STR}</string>|" Info.plist &&\
|
sed -i -e "s|<key>CFBundleVersion</key>\s*<string>[^<]*</string>|<key>CFBundleVersion</key><string>$${VERSION_STR}</string>|" Info.plist &&\
|
||||||
sed -i -e "s|<key>CFBundleShortVersionString</key>\s*<string>[^<]*</string>|<key>CFBundleShortVersionString</key><string>$${VERSION_STR}</string>|" Info.plist &&\
|
sed -i -e "s|<key>CFBundleShortVersionString</key>\s*<string>[^<]*</string>|<key>CFBundleShortVersionString</key><string>$${VERSION_STR}</string>|" Info.plist &&\
|
||||||
git tag $${TAG} > /dev/null && \
|
git tag $${TAG} > /dev/null && \
|
||||||
git tag -d $${TAG} > /dev/null && \
|
git tag -d $${TAG} > /dev/null && \
|
||||||
git add Package.swift Info.plist && \
|
git add Info.plist && \
|
||||||
git commit -m "release: version $${TAG}" && \
|
git commit -m "release: version $${TAG}" && \
|
||||||
echo "creating git tag : v$${TAG}" && \
|
echo "creating git tag : v$${TAG}" && \
|
||||||
git tag v$${TAG} && \
|
git tag v$${TAG} && \
|
||||||
|
|||||||
@@ -1,31 +0,0 @@
|
|||||||
// swift-tools-version: 5.4
|
|
||||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
||||||
|
|
||||||
import PackageDescription
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
let version = "draft"
|
|
||||||
let baseURL = "https://github.com/hiddify/hiddify-next-core/releases/download/"
|
|
||||||
let packageURL = baseURL + version + "/hiddify-libcore-ios.xcframework.zip"
|
|
||||||
|
|
||||||
let package = Package(
|
|
||||||
name: "Libcore",
|
|
||||||
platforms: [
|
|
||||||
.iOS(.v13) // Minimum platform version
|
|
||||||
],
|
|
||||||
products: [
|
|
||||||
.library(
|
|
||||||
name: "Libcore",
|
|
||||||
targets: ["Libcore"]),
|
|
||||||
],
|
|
||||||
dependencies: [
|
|
||||||
// No dependencies
|
|
||||||
],
|
|
||||||
targets: [
|
|
||||||
.binaryTarget(
|
|
||||||
name: "Libcore",
|
|
||||||
url: packageURL,
|
|
||||||
checksum: "d1ace700090a20b2e2567f2a29feedd136f9873149ea5b32586add5486a96b49"
|
|
||||||
)
|
|
||||||
]
|
|
||||||
)
|
|
||||||
Reference in New Issue
Block a user