Desktop foundation / core (ubuntu-latest) (push) Failing after 28s
Desktop foundation / core (macos-latest) (push) Canceled after 0s
Desktop foundation / core (windows-latest) (push) Canceled after 0s
Linux / verify (push) Canceled after 0s
Linux / keyless-cuda (push) Canceled after 0s
Linux / static-cuda-package (push) Canceled after 0s
Linux / hosted-cuda-package (push) Canceled after 0s
Linux / linux-static-cli (push) Canceled after 0s
Linux / linux-cli-container (push) Canceled after 0s
Linux / release-cli (push) Canceled after 0s
33 lines
1.4 KiB
Bash
33 lines
1.4 KiB
Bash
#!/bin/sh
|
|
# Local unsigned developer bundle. No install, server access or model loading.
|
|
set -eu
|
|
repo=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
|
case "$(uname -m)" in
|
|
arm64) rid=osx-arm64 ;;
|
|
x86_64) rid=osx-x64 ;;
|
|
*) echo "Unsupported macOS architecture" >&2; exit 1 ;;
|
|
esac
|
|
test "$(uname -s)" = Darwin
|
|
cargo build --locked --manifest-path "$repo/desktop-core/Cargo.toml" -j 2
|
|
bundle="$repo/artifacts/desktop/Strata Preview.app"
|
|
mkdir -p "$bundle/Contents/MacOS"
|
|
dotnet publish "$repo/desktop/Strata.Desktop.csproj" -r "$rid" --self-contained true \
|
|
-p:UseSharedCompilation=false \
|
|
-p:NuGetLockFilePath="$repo/artifacts/desktop/packages-$rid.lock.json" \
|
|
-o "$bundle/Contents/MacOS" --nologo
|
|
cat > "$bundle/Contents/Info.plist" <<'PLIST'
|
|
<?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>CFBundleIdentifier</key><string>dev.strata.preview</string>
|
|
<key>CFBundleName</key><string>Strata Preview</string>
|
|
<key>CFBundleDisplayName</key><string>Strata Preview</string>
|
|
<key>CFBundleExecutable</key><string>Strata.Desktop</string>
|
|
<key>CFBundlePackageType</key><string>APPL</string>
|
|
<key>CFBundleShortVersionString</key><string>0.1.0</string>
|
|
<key>CFBundleVersion</key><string>1</string>
|
|
<key>NSHighResolutionCapable</key><true/>
|
|
</dict></plist>
|
|
PLIST
|
|
printf '%s\n' "$bundle"
|