Skip to content

Commit

Permalink
Adding apple silicone binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
Shchvova committed Nov 25, 2020
1 parent 4560134 commit a9823e0
Show file tree
Hide file tree
Showing 22 changed files with 237 additions and 6 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ on:
push:
paths:
- 'plugins/**'
repository_dispatch:

env:
releaseName: v${{ github.run_number }}
Expand All @@ -24,6 +25,7 @@ jobs:
(
if [ ! -d "$platform" ] ; then continue ; fi
cd "$platform"
if ! ls * &> /dev/null ; then continue ; fi
COPYFILE_DISABLE=true tar -czvf ../../"$build-$platform.tgz" --exclude=".*" *
)
done
Expand All @@ -37,4 +39,16 @@ jobs:
tag_name: ${{ env.releaseName }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Directory update request
run: |
[ -z "${{ secrets.ISSUE_PAT }}" ] && echo "Skipping, no ISSUE_PAT" && exit 0
curl --request POST \
--url https://api.github.com/repos/solar2d/plugins.solar2d.com/dispatches \
--header 'authorization: Bearer ${{ secrets.ISSUE_PAT }}' \
--header 'content-type: application/json' \
--data '{
"event_type": "repo_updated",
"client_payload": {
"repo": "${{ github.repository }}"
}
}'
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
plugins/*.tgz
plugins/*.tgz
*xcuser*
9 changes: 9 additions & 0 deletions plugins/2020.3627/android/metadata.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
local metadata =
{
plugin =
{
format = 'jar',
},
}

return metadata
Binary file added plugins/2020.3627/android/plugin.zeroconf.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
framework module Corona_plugin_zeroconf {
umbrella header "Corona_plugin_zeroconf.h"

export *
module * { export * }
}
12 changes: 12 additions & 0 deletions plugins/2020.3627/appletvos/metadata.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
local metadata =
{
plugin =
{
format = 'framework',
staticLibs = {},
frameworks = { "Corona_plugin_zeroconf" },
frameworksOptional = {},
},
}

return metadata
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
framework module Corona_plugin_zeroconf {
umbrella header "Corona_plugin_zeroconf.h"

export *
module * { export * }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
<?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>files</key>
<dict>
<key>Info.plist</key>
<data>
XO5RlAlxKmIyXeCYIxp7UfWti/U=
</data>
<key>Modules/module.modulemap</key>
<data>
EUAIHKt1Z2P/v7ozlZP5w0Vpj0w=
</data>
</dict>
<key>files2</key>
<dict>
<key>Modules/module.modulemap</key>
<dict>
<key>hash</key>
<data>
EUAIHKt1Z2P/v7ozlZP5w0Vpj0w=
</data>
<key>hash2</key>
<data>
5yzjNS7p6g9Jp3iWOHNhTwGEHVJ1Okwii5Y1eKHWaiM=
</data>
</dict>
</dict>
<key>rules</key>
<dict>
<key>^</key>
<true/>
<key>^.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^version.plist$</key>
<true/>
</dict>
<key>rules2</key>
<dict>
<key>.*\.dSYM($|/)</key>
<dict>
<key>weight</key>
<real>11</real>
</dict>
<key>^</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^(.*/)?\.DS_Store$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>2000</real>
</dict>
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^.*</key>
<true/>
<key>^.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^Info\.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^PkgInfo$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^[^/]+$</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^embedded\.provisionprofile$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^version\.plist$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
</dict>
</dict>
</plist>
12 changes: 12 additions & 0 deletions plugins/2020.3627/appletvsimulator/metadata.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
local metadata =
{
plugin =
{
format = 'framework',
staticLibs = {},
frameworks = { "Corona_plugin_zeroconf" },
frameworksOptional = {},
},
}

return metadata
Binary file not shown.
12 changes: 12 additions & 0 deletions plugins/2020.3627/iphone-sim/metadata.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
local metadata =
{
plugin =
{
format = 'staticLibrary',
staticLibs = { 'plugin_zeroconf', },
frameworks = {},
frameworksOptional = {},
},
}

return metadata
Binary file added plugins/2020.3627/iphone/libplugin_zeroconf.a
Binary file not shown.
12 changes: 12 additions & 0 deletions plugins/2020.3627/iphone/metadata.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
local metadata =
{
plugin =
{
format = 'staticLibrary',
staticLibs = { 'plugin_zeroconf', },
frameworks = {},
frameworksOptional = {},
},
}

return metadata
Binary file added plugins/2020.3627/mac-sim/plugin_zeroconf.dylib
Binary file not shown.
Binary file not shown.
1 change: 0 additions & 1 deletion src/mac/CoronaEnterprise

This file was deleted.

1 change: 1 addition & 0 deletions src/mac/CoronaEnterprise
11 changes: 7 additions & 4 deletions src/mac/Plugin.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,21 @@
compilerSpec = com.apple.compilers.proxy.script;
filePatterns = "*.lua";
fileType = pattern.proxy;
inputFiles = (
);
isEditable = 1;
outputFiles = (
"$TARGET_TEMP_DIR/$(INPUT_FILE_BASE).c",
);
script = "CORONA_DIR=$SRCROOT/CoronaEnterprise/Corona\nCORONA_MAC_BIN_DIR=$CORONA_DIR/mac/bin\n\nif [ -e \"$CORONA_MAC_BIN_DIR/lua\" ]; then\n LUA_DIR=$CORONA_MAC_BIN_DIR/lua\nelse\n echo \"Could not find proper 32-bit lua build in: $CORONA_MAC_BIN_DIR/lua\"\n exit 1\nfi\n\necho $CORONA_MAC_BIN_DIR/lua2c.sh $INPUT_FILE_PATH $TARGET_TEMP_DIR $CONFIGURATION\n\"$CORONA_MAC_BIN_DIR/lua2c.sh\" \"$INPUT_FILE_PATH\" \"$TARGET_TEMP_DIR\" \"$CONFIGURATION\" \"$CORONA_MAC_BIN_DIR\"";
script = "CORONA_DIR=$SRCROOT/CoronaEnterprise/Corona\nCORONA_MAC_BIN_DIR=$CORONA_DIR/mac/bin\n\nif [ -e \"$CORONA_MAC_BIN_DIR/lua\" ]; then\n LUA_DIR=$CORONA_MAC_BIN_DIR/lua\nelse\n echo \"Could not find proper 32-bit lua build in: $CORONA_MAC_BIN_DIR/lua\"\n exit 1\nfi\n\necho $CORONA_MAC_BIN_DIR/lua2c.sh $INPUT_FILE_PATH $TARGET_TEMP_DIR $CONFIGURATION\n\"$CORONA_MAC_BIN_DIR/lua2c.sh\" \"$INPUT_FILE_PATH\" \"$TARGET_TEMP_DIR\" \"$CONFIGURATION\" \"$CORONA_MAC_BIN_DIR\"\n";
};
/* End PBXBuildRule section */

/* Begin PBXCopyFilesBuildPhase section */
F50E0DCD1D5C115300880420 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "~/Library/Application Support/Corona/Simulator/Plugins";
dstPath = "$HOME/Library/Application Support/Corona/Simulator/Plugins";
dstSubfolderSpec = 0;
files = (
F50E0DCE1D5C116700880420 /* plugin_zeroconf.dylib in CopyFiles */,
Expand Down Expand Up @@ -137,6 +139,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
);
mainGroup = A482DA7815F9B7E70084DC42;
Expand Down Expand Up @@ -164,7 +167,6 @@
A482DA9715F9B7E70084DC42 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
Expand Down Expand Up @@ -196,7 +198,6 @@
A482DA9815F9B7E70084DC42 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = YES;
Expand All @@ -220,6 +221,7 @@
A491863E1641DDB800A39286 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_CXX_LIBRARY = "libc++";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
Expand All @@ -231,6 +233,7 @@
A491863F1641DDB800A39286 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_CXX_LIBRARY = "libc++";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

0 comments on commit a9823e0

Please sign in to comment.