mirror of
https://github.com/ARMSX2/ARMSX1.git
synced 2026-08-24 16:53:35 -07:00
- Added the Pixel Cyr font to the mobile assets directory. - Created a new React Native configuration file to specify project settings, including Android source directory, app name, and package name. - Configured asset linking for the mobile assets.
91 lines
2.8 KiB
YAML
91 lines
2.8 KiB
YAML
name: ARMSX
|
|
options:
|
|
deploymentTarget:
|
|
iOS: "15.1"
|
|
settings:
|
|
DEVELOPMENT_TEAM: ""
|
|
CLANG_ENABLE_OBJC_ARC: YES
|
|
targets:
|
|
ARMSX:
|
|
type: application
|
|
platform: iOS
|
|
deploymentTarget: "15.1"
|
|
sources:
|
|
- path: Sources
|
|
resources:
|
|
- path: ../Contents/bios.bin
|
|
optional: true
|
|
- path: ../bios.bin
|
|
optional: true
|
|
- path: ../../icon.icon
|
|
optional: true
|
|
preBuildScripts:
|
|
- name: "Bundle React Native overlay"
|
|
shell: /bin/sh
|
|
script: |
|
|
set -euo pipefail
|
|
NODE_CANDIDATES=(
|
|
"${NODE_BINARY:-}"
|
|
"$(command -v node 2>/dev/null || true)"
|
|
"/opt/homebrew/bin/node"
|
|
"/usr/local/bin/node"
|
|
"/usr/bin/node"
|
|
"/usr/bin/env node"
|
|
)
|
|
|
|
for candidate in "${NODE_CANDIDATES[@]}"; do
|
|
if [ -n "$candidate" ] && [ -x "$candidate" ]; then
|
|
export NODE_BINARY="$candidate"
|
|
break
|
|
fi
|
|
done
|
|
|
|
if [ -z "${NODE_BINARY:-}" ]; then
|
|
echo "error: Unable to locate node. Set NODE_BINARY to your node path (e.g. $(which node))." >&2
|
|
exit 1
|
|
fi
|
|
export RCT_METRO_PORT=${RCT_METRO_PORT:-8081}
|
|
export PROJECT_ROOT="$PROJECT_DIR/../../mobile"
|
|
cd "$PROJECT_ROOT/.."
|
|
|
|
if [ ! -f "$PROJECT_ROOT/../node_modules/react-native/scripts/react-native-xcode.sh" ]; then
|
|
echo "error: react-native-xcode.sh missing. Did you run npm install?" >&2
|
|
exit 1
|
|
fi
|
|
|
|
export ENTRY_FILE="index.js"
|
|
export BUNDLE_OUTPUT="$CONFIGURATION_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH/main.jsbundle"
|
|
export ASSETS_DEST="$CONFIGURATION_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH"
|
|
export DEV=false
|
|
|
|
"$PROJECT_ROOT/../node_modules/react-native/scripts/react-native-xcode.sh"
|
|
basedOnDependencyAnalysis: false
|
|
settings:
|
|
INFOPLIST_FILE: Sources/Info.plist
|
|
PRODUCT_BUNDLE_IDENTIFIER: com.nanodata.armsx
|
|
LD_RUNPATH_SEARCH_PATHS: "$(inherited) @executable_path/Frameworks"
|
|
OTHER_LDFLAGS: "$(inherited) -ObjC"
|
|
LIBRARY_SEARCH_PATHS:
|
|
- "$(inherited)"
|
|
- "$(SDKROOT)/usr/lib/swift"
|
|
- "$(PROJECT_DIR)/../Frameworks"
|
|
FRAMEWORK_SEARCH_PATHS:
|
|
- "$(inherited)"
|
|
- "$(PROJECT_DIR)/../Frameworks"
|
|
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
|
|
configFiles:
|
|
Debug: Pods/Target Support Files/Pods-ARMSX/Pods-ARMSX.debug.xcconfig
|
|
Release: Pods/Target Support Files/Pods-ARMSX/Pods-ARMSX.release.xcconfig
|
|
dependencies:
|
|
- framework: ../Frameworks/SDL2.xcframework
|
|
embed: true
|
|
codeSign: true
|
|
- framework: ../Frameworks/libarmsx.dylib
|
|
embed: true
|
|
codeSign: true
|
|
schemes:
|
|
ARMSX:
|
|
build:
|
|
targets:
|
|
ARMSX: all
|