From 5518ea762de08b936f9a0251845114c269334190 Mon Sep 17 00:00:00 2001 From: apotocki Date: Sun, 1 Oct 2023 15:31:22 +0200 Subject: [PATCH] version 5.4.6 --- README.md | 92 ++++++++++++++++++++++++------------------------ lua-iosx.podspec | 40 ++++++++++----------- scripts/build.sh | 2 +- 3 files changed, 67 insertions(+), 67 deletions(-) diff --git a/README.md b/README.md index 3220270..c18ae95 100644 --- a/README.md +++ b/README.md @@ -1,46 +1,46 @@ -## LUA for iOS and macOS (Intel & Apple Silicon M1) & Catalyst - arm64 / x86_64 - -Supported version: 5.4.5 - -This repo provides a universal script for building static LUA library for use in iOS and macOS applications. -The latest supported LUA version is taken from: https://www.lua.org/ftp/lua-5.4.5.tar.gz - -## Prerequisites - 1) Xcode must be installed because xcodebuild is used to create xcframeworks - 2) ```xcode-select -p``` must point to Xcode app developer directory (by default e.g. /Applications/Xcode.app/Contents/Developer). If it points to CommandLineTools directory you should execute: - ```sudo xcode-select --reset``` or ```sudo xcode-select -s /Applications/Xcode.app/Contents/Developer``` - -## How to build? - - Manually -``` - # clone the repo - git clone -b 5.4.5 https://github.com/apotocki/lua-iosx - - # build libraries - cd lua-iosx - scripts/build.sh - - # have fun, the result artifacts will be located in 'frameworks' folder. -``` - - Use cocoapods. Add the following lines into your project's Podfile: -``` - use_frameworks! - pod 'lua-iosx', '~> 5.4.5' - # or optionally more precisely - # pod 'lua-iosx', :git => 'https://github.com/apotocki/lua-iosx', :tag => '5.4.5.0' -``` -install new dependency: -``` - pod install --verbose -``` - -## As an advertisement… -The LUA library built by this project is used in my iOS application on the App Store: - -[
PotoHEX
HEX File Viewer & Editor
]() - -This app is designed for viewing and editing files at the byte or character level. - -You can support my open-source development by trying the [App](https://apps.apple.com/us/app/potohex/id1620963302). - -Feedback is welcome! +## LUA for iOS and macOS (Intel & Apple Silicon M1) & Catalyst - arm64 / x86_64 + +Supported version: 5.4.6 + +This repo provides a universal script for building static LUA library for use in iOS and macOS applications. +The latest supported LUA version is taken from: https://www.lua.org/ftp/lua-5.4.6.tar.gz + +## Prerequisites + 1) Xcode must be installed because xcodebuild is used to create xcframeworks + 2) ```xcode-select -p``` must point to Xcode app developer directory (by default e.g. /Applications/Xcode.app/Contents/Developer). If it points to CommandLineTools directory you should execute: + ```sudo xcode-select --reset``` or ```sudo xcode-select -s /Applications/Xcode.app/Contents/Developer``` + +## How to build? + - Manually +``` + # clone the repo + git clone -b 5.4.6 https://github.com/apotocki/lua-iosx + + # build libraries + cd lua-iosx + scripts/build.sh + + # have fun, the result artifacts will be located in 'frameworks' folder. +``` + - Use cocoapods. Add the following lines into your project's Podfile: +``` + use_frameworks! + pod 'lua-iosx', '~> 5.4.6' + # or optionally more precisely + # pod 'lua-iosx', :git => 'https://github.com/apotocki/lua-iosx', :tag => '5.4.6.0' +``` +install new dependency: +``` + pod install --verbose +``` + +## As an advertisement… +The LUA library built by this project is used in my iOS application on the App Store: + +[
PotoHEX
HEX File Viewer & Editor
]() + +This app is designed for viewing and editing files at the byte or character level. + +You can support my open-source development by trying the [App](https://apps.apple.com/us/app/potohex/id1620963302). + +Feedback is welcome! diff --git a/lua-iosx.podspec b/lua-iosx.podspec index aefc36e..17626f7 100644 --- a/lua-iosx.podspec +++ b/lua-iosx.podspec @@ -1,20 +1,20 @@ -Pod::Spec.new do |s| - s.name = "lua-iosx" - s.version = "5.4.5.0" - s.summary = "LUA XCFramework for macOS and iOS, including both arm64 and x86_64 builds for macOS, Mac Catalyst and Simulator." - s.homepage = "https://github.com/apotocki/lua-iosx" - s.license = "MIT" - s.author = { "Alexander Pototskiy" => "alex.a.potocki@gmail.com" } - s.social_media_url = "https://www.linkedin.com/in/alexander-pototskiy" - s.ios.deployment_target = "13.4" - s.osx.deployment_target = "11.0" - s.osx.pod_target_xcconfig = { 'ONLY_ACTIVE_ARCH' => 'YES' } - s.ios.pod_target_xcconfig = { 'ONLY_ACTIVE_ARCH' => 'YES' } - s.static_framework = true - s.prepare_command = "sh scripts/build.sh" - s.source = { :git => "https://github.com/apotocki/lua-iosx.git", :tag => "#{s.version}", :submodules => "true" } - s.source_files = "frameworks/Headers/*.{h}" - s.header_mappings_dir = "frameworks/Headers" - s.public_header_files = "frameworks/Headers/*.{h,hpp}" - s.vendored_frameworks = "frameworks/lua.xcframework" -end +Pod::Spec.new do |s| + s.name = "lua-iosx" + s.version = "5.4.6.0" + s.summary = "LUA XCFramework for macOS and iOS, including both arm64 and x86_64 builds for macOS, Mac Catalyst and Simulator." + s.homepage = "https://github.com/apotocki/lua-iosx" + s.license = "MIT" + s.author = { "Alexander Pototskiy" => "alex.a.potocki@gmail.com" } + s.social_media_url = "https://www.linkedin.com/in/alexander-pototskiy" + s.ios.deployment_target = "13.4" + s.osx.deployment_target = "11.0" + s.osx.pod_target_xcconfig = { 'ONLY_ACTIVE_ARCH' => 'YES' } + s.ios.pod_target_xcconfig = { 'ONLY_ACTIVE_ARCH' => 'YES' } + s.static_framework = true + s.prepare_command = "sh scripts/build.sh" + s.source = { :git => "https://github.com/apotocki/lua-iosx.git", :tag => "#{s.version}", :submodules => "true" } + s.source_files = "frameworks/Headers/*.{h}" + s.header_mappings_dir = "frameworks/Headers" + s.public_header_files = "frameworks/Headers/*.{h,hpp}" + s.vendored_frameworks = "frameworks/lua.xcframework" +end diff --git a/scripts/build.sh b/scripts/build.sh index c4a2cbf..7830db6 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -4,7 +4,7 @@ set -e THREAD_COUNT=$(sysctl hw.ncpu | awk '{print $2}') HOST_ARC=$( uname -m ) XCODE_ROOT=$( xcode-select -print-path ) -LUA_VER=5.4.5 +LUA_VER=5.4.6 ################## SETUP END DEVSYSROOT=$XCODE_ROOT/Platforms/iPhoneOS.platform/Developer SIMSYSROOT=$XCODE_ROOT/Platforms/iPhoneSimulator.platform/Developer