Add Gitea workflow to build the macOS app #1
@@ -0,0 +1,53 @@
|
|||||||
|
name: Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
tags: ["v*"]
|
||||||
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
# Must match a label registered on your macOS act_runner (host mode).
|
||||||
|
runs-on: macos-arm64
|
||||||
|
env:
|
||||||
|
PROJECT: proxy studio.xcodeproj
|
||||||
|
TARGET: proxy studio
|
||||||
|
APP_NAME: Proxy Studio
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Show toolchain
|
||||||
|
run: |
|
||||||
|
xcode-select -p
|
||||||
|
xcodebuild -version
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
set -o pipefail
|
||||||
|
xcodebuild build \
|
||||||
|
-project "$PROJECT" \
|
||||||
|
-target "$TARGET" \
|
||||||
|
-configuration Release \
|
||||||
|
SYMROOT="$PWD/build" \
|
||||||
|
CODE_SIGN_STYLE=Manual \
|
||||||
|
CODE_SIGN_IDENTITY=- \
|
||||||
|
DEVELOPMENT_TEAM= \
|
||||||
|
| tee xcodebuild.log
|
||||||
|
|
||||||
|
- name: Package
|
||||||
|
run: |
|
||||||
|
cd build/Release
|
||||||
|
ditto -c -k --keepParent "$APP_NAME.app" "$GITHUB_WORKSPACE/ProxyStudio.zip"
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: ProxyStudio-${{ github.sha }}
|
||||||
|
path: ProxyStudio.zip
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
name: xcodebuild-log
|
||||||
|
path: xcodebuild.log
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
"ENABLE_RESOURCE_ACCESS_USB": "NO",
|
"ENABLE_RESOURCE_ACCESS_USB": "NO",
|
||||||
"ENABLE_USER_SELECTED_FILES": "readonly",
|
"ENABLE_USER_SELECTED_FILES": "readonly",
|
||||||
"GENERATE_INFOPLIST_FILE": "YES",
|
"GENERATE_INFOPLIST_FILE": "YES",
|
||||||
"INFOPLIST_FILE": "MyApp/Info.plist",
|
"INFOPLIST_FILE": "proxy studio/Info.plist",
|
||||||
"INFOPLIST_KEY_CFBundleDisplayName": "Proxy Studio",
|
"INFOPLIST_KEY_CFBundleDisplayName": "Proxy Studio",
|
||||||
"INFOPLIST_KEY_LSApplicationCategoryType": "public.app-category.developer-tools",
|
"INFOPLIST_KEY_LSApplicationCategoryType": "public.app-category.developer-tools",
|
||||||
"INFOPLIST_KEY_NSLocalNetworkUsageDescription": "Proxy Studio connects to your Nginx Proxy Manager and UniFi gateways to manage proxy hosts, certificates, and DNS records.",
|
"INFOPLIST_KEY_NSLocalNetworkUsageDescription": "Proxy Studio connects to your Nginx Proxy Manager and UniFi gateways to manage proxy hosts, certificates, and DNS records.",
|
||||||
|
|||||||
Reference in New Issue
Block a user