Skip to content

Commit

Permalink
Release 2.1.3 (#1925)
Browse files Browse the repository at this point in the history
* Update CHANGELOG.md

* Update publish.ps1

* Enable lua bit module for all lua versions supported by axmol

* Fixup

* Enable build lua-tests on gh ci

* Update ChangeLog

* Update CHANGELOG.md

* updUpdate 1kdist to v86
  • Loading branch information
halx99 authored May 26, 2024
1 parent 7414723 commit 905fce5
Show file tree
Hide file tree
Showing 7 changed files with 169 additions and 132 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ jobs:
run: |
./tools/cmdline/axmol -p wasm -xc '-DAX_ENABLE_EXT_EFFEKSEER=ON,-DAX_WASM_THREADS=8' -j2
./tools/cmdline/axmol -p wasm -xc '-DAX_ENABLE_EXT_EFFEKSEER=ON,-DAX_WASM_THREADS=8' -j2 -xb '--target,fairygui-tests'
./tools/cmdline/axmol -p wasm -xc '-DAX_ENABLE_EXT_EFFEKSEER=ON,-DAX_WASM_THREADS=8' -j2 -xb '--target,lua-tests'
- uses: actions/upload-artifact@v4
with:
name: wasm
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

## c-ares
- [![Upstream](https://img.shields.io/github/v/release/c-ares/c-ares?label=Upstream)](https://github.com/c-ares/c-ares)
- Version: 1.28.1
- Version: 1.29.0
- License: MIT

## Chipmunk2D
Expand Down
11 changes: 8 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## axmol-2.1.3 ?? 2024
## axmol-2.1.3 May.26 2024

### Significant changes relative to 2.1.2:

Expand Down Expand Up @@ -86,7 +86,7 @@
- Update TLD axmol.org -> axmol.dev
- Rename folder thirdparty ==> 3rdparty
- Update spine to 4.1-54fac9d
- Set cmake minmal require to 3.29.0+ for supress xcode 15 duplicated linking warnings
- Update axmol cmdline preferred cmake to 3.29.3+ for supress xcode 15 duplicated linking warnings
- Remove unnecessary cmake option: `AX_VS_DEPLOYMENT_TARGET`
- Make FileStream open file for write share flags same with cstd
- Fix some compile warnings
Expand All @@ -108,6 +108,11 @@
- Set AX_USE_METAL and AX_USE_GL to 1 if defined by @smilediver in https://github.com/axmolengine/axmol/pull/1916
- Update the CMake minimum version requirement to 3.23.0+ by @rh101 in https://github.com/axmolengine/axmol/pull/1918
- Add x86_64 to example list of possible target architectures for android by @rh101 in https://github.com/axmolengine/axmol/pull/1919
- Enable lua `bit` module for all lua versions supported by axmol
- Fix passing non null terminated strings for null terminated params by @smilediver in https://github.com/axmolengine/axmol/pull/1924
- Fix sol problem in emplace method by @paulocoutinhox in https://github.com/axmolengine/axmol/pull/1927
- Fix descriptor typo by @paulocoutinhox in https://github.com/axmolengine/axmol/pull/1928
- Do image processing to reverse premultiplied alpha in separate thread by @rh101 in https://github.com/axmolengine/axmol/pull/1929


### sdks & tools updates
Expand All @@ -129,7 +134,7 @@
- astcenc: 4.7.0 ==> 4.8.0
- stb_image: 2.28 ==> 2.29
- luajit: 2.1-9cc2e42 ==> 2.1-d06beb0
- c-ares: 1.25.0 ==> 1.28.1
- c-ares: 1.25.0 ==> 1.29.0
- imgui: 1.90.4 ==> 1.90.6

## axmol-2.1.2 Feb.25 2024
Expand Down
177 changes: 108 additions & 69 deletions extensions/scripting/lua-bindings/script/core/bitExtend.lua
Original file line number Diff line number Diff line change
@@ -1,96 +1,135 @@
-- bit operation
-- since axmol 2.1.3, this file will enable require('bit') for all Lua versions supported by axmol

bit = bit or {}
bit.data32 = {}

for i=1,32 do
bit.data32[i]=2^(32-i)
function _vmversion()
local major, minor = _VERSION:match("(%d+)%.(%d+)")
return tonumber(major), tonumber(minor)
end

function bit._b2d(arg)
local nr=0
local major, minor = _vmversion()

if jit ~= nil then
bit = require('bit')
elseif major >= 5 and minor >= 2 then
if minor < 4 then
bit = require('bit32')
else
-- note: Lua 5.4+ bit op is 64bit integer
bit = {
band = function(a, b)
return a & b
end,
bor = function(a, b)
return a | b
end,
bxor = function(a, b)
return a ~ b
end,
bnot = function(a)
return ~a
end,
lshift = function(a, n)
return a << n
end,
rshift = function(a, n)
return a >> n
end
}
end
package.loaded['bit'] = bit
else -- fallback to pure lua implementation, slowest
bit.data32 = {}

for i=1,32 do
if arg[i] ==1 then
nr=nr+bit.data32[i]
bit.data32[i]=2^(32-i)
end

function bit._b2d(arg)
local nr=0
for i=1,32 do
if arg[i] ==1 then
nr=nr+bit.data32[i]
end
end
return nr
end
return nr
end

function bit._d2b(arg)
arg = arg >= 0 and arg or (0xFFFFFFFF + arg + 1)
local tr={}
for i=1,32 do
if arg >= bit.data32[i] then
tr[i]=1
arg=arg-bit.data32[i]
else
tr[i]=0
function bit._d2b(arg)
arg = arg >= 0 and arg or (0xFFFFFFFF + arg + 1)
local tr={}
for i=1,32 do
if arg >= bit.data32[i] then
tr[i]=1
arg=arg-bit.data32[i]
else
tr[i]=0
end
end
return tr
end
return tr
end

function bit._and(a,b)
local op1=bit._d2b(a)
local op2=bit._d2b(b)
local r={}
function bit._and(a,b)
local op1=bit._d2b(a)
local op2=bit._d2b(b)
local r={}

for i=1,32 do
if op1[i]==1 and op2[i]==1 then
r[i]=1
else
r[i]=0
for i=1,32 do
if op1[i]==1 and op2[i]==1 then
r[i]=1
else
r[i]=0
end
end
return bit._b2d(r)

end
return bit._b2d(r)

end
function bit._rshift(a,n)
local op1=bit._d2b(a)
n = n <= 32 and n or 32
n = n >= 0 and n or 0

function bit._rshift(a,n)
local op1=bit._d2b(a)
n = n <= 32 and n or 32
n = n >= 0 and n or 0
for i=32, n+1, -1 do
op1[i] = op1[i-n]
end
for i=1, n do
op1[i] = 0
end

for i=32, n+1, -1 do
op1[i] = op1[i-n]
return bit._b2d(op1)
end
for i=1, n do
op1[i] = 0
end

return bit._b2d(op1)
end

function bit._not(a)
local op1=bit._d2b(a)
local r={}
function bit._not(a)
local op1=bit._d2b(a)
local r={}

for i=1,32 do
if op1[i]==1 then
r[i]=0
else
r[i]=1
for i=1,32 do
if op1[i]==1 then
r[i]=0
else
r[i]=1
end
end
return bit._b2d(r)
end
return bit._b2d(r)
end

function bit._or(a,b)
local op1=bit._d2b(a)
local op2=bit._d2b(b)
local r={}
function bit._or(a,b)
local op1=bit._d2b(a)
local op2=bit._d2b(b)
local r={}

for i=1,32 do
if op1[i]==1 or op2[i]==1 then
r[i]=1
else
r[i]=0
for i=1,32 do
if op1[i]==1 or op2[i]==1 then
r[i]=1
else
r[i]=0
end
end
return bit._b2d(r)
end
return bit._b2d(r)
end

bit.band = bit.band or bit._and
bit.rshift = bit.rshift or bit._rshift
bit.bnot = bit.bnot or bit._not
bit.band = bit.band or bit._and
bit.rshift = bit.rshift or bit._rshift
bit.bnot = bit.bnot or bit._not
package.loaded['bit'] = bit
end
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"versions": {
"1kdist": "v85",
"1kdist": "v86",
"oboe": "1.8.1",
"kcp": "v1.7-f2aa30e",
"lz4": "v1.9.4",
Expand Down
104 changes: 46 additions & 58 deletions templates/lua/Dummy.xsxproj
Original file line number Diff line number Diff line change
@@ -1,69 +1,57 @@
<?xml version="1.0"?>
<Project fullMode="0">
<assets>
<item path="src\packages\mvc\AppBase.lua" dflag="131076" />
<item path="src\packages\mvc\init.lua" dflag="131076" />
<item path="src\config.lua" dflag="131076" />
<item path="src\cocos\ui\DeprecatedUIEnum.lua" dflag="131076" />
<item path="src\cocos\ui\DeprecatedUIFunc.lua" dflag="131076" />
<item path="src\main.lua" dflag="131076" />
<item path="src\packages\mvc\ViewBase.lua" dflag="131076" />
<item path="src\cocos\ui\GuiConstants.lua" dflag="131076" />
<item path="src\cocos\framework\init.lua" dflag="131076" />
<item path="src\cocos\framework\package_support.lua" dflag="131076" />
<item path="src\cocos\framework\transition.lua" dflag="131076" />
<item path="src\cocos\network\NetworkConstants.lua" dflag="131076" />
<item path="src\cocos\network\DeprecatedNetworkClass.lua" dflag="131076" />
<item path="src\cocos\framework\extends\UIWidget.lua" dflag="131076" />
<item path="src\cocos\network\DeprecatedNetworkEnum.lua" dflag="131076" />
<item path="src\cocos\init.lua" dflag="131076" />
<item path="src\cocos\network\DeprecatedNetworkFunc.lua" dflag="131076" />
<item path="src\cocos\framework\extends\UITextField.lua" dflag="131076" />
<item path="src\cocos\physics3d\physics3d-constants.lua" dflag="131076" />
<item path="src\cocos\spine\SpineConstants.lua" dflag="131076" />
<item path="src\cocos\cocos2d\DrawPrimitives.lua" dflag="131076" />
<item path="src\cocos\cocos2d\luaoc.lua" dflag="131076" />
<item path="src\cocos\cocostudio\DeprecatedCocoStudioClass.lua" dflag="131076" />
<item path="src\cocos\cocos2d\bitExtend.lua" dflag="131076" />
<item path="src\cocos\cocosdenshion\AudioEngine.lua" dflag="131076" />
<item path="src\cocos\cocostudio\DeprecatedCocoStudioFunc.lua" dflag="131076" />
<item path="src\cocos\cocos2d\DeprecatedCocos2dClass.lua" dflag="131076" />
<item path="src\cocos\cocostudio\CocoStudio.lua" dflag="131076" />
<item path="src\cocos\cocos2d\deprecated.lua" dflag="131076" />
<item path="src\app\views\MainScene.lua" dflag="131076" />
<item path="src\app\MyApp.lua" dflag="131076" />
<item path="src\cocos\cocostudio\StudioConstants.lua" dflag="131076" />
<item path="src\cocos\cocos2d\DeprecatedCocos2dFunc.lua" dflag="131076" />
<item path="src\cocos\cocos2d\functions.lua" dflag="131076" />
<item path="src\cocos\cocos2d\luaj.lua" dflag="131076" />
<item path="src\cocos\cocos2d\Cocos2d.lua" dflag="131076" />
<item path="src\cocos\cocos2d\DeprecatedCocos2dEnum.lua" dflag="131076" />
<item path="src\cocos\3d\3dConstants.lua" dflag="131076" />
<item path="src\cocos\cocos2d\Cocos2dConstants.lua" dflag="131076" />
<item path="src\cocos\framework\device.lua" dflag="131076" />
<item path="src\cocos\framework\extends\UIScrollView.lua" dflag="131076" />
<item path="src\cocos\framework\display.lua" dflag="131076" />
<item path="src\cocos\framework\extends\NodeEx.lua" dflag="131076" />
<item path="src\cocos\framework\components\event.lua" dflag="131076" />
<item path="src\cocos\framework\extends\UIListView.lua" dflag="131076" />
<item path="src\cocos\framework\extends\UIPageView.lua" dflag="131076" />
<item path="src\cocos\framework\extends\UICheckBox.lua" dflag="131076" />
<item path="src\cocos\controller\ControllerConstants.lua" dflag="131076" />
<item path="src\cocos\extension\DeprecatedExtensionClass.lua" dflag="131076" />
<item path="src\cocos\extension\DeprecatedExtensionEnum.lua" dflag="131076" />
<item path="src\cocos\extension\DeprecatedExtensionFunc.lua" dflag="131076" />
<item path="src\cocos\extension\ExtensionConstants.lua" dflag="131076" />
<item path="src\cocos\framework\extends\LayerEx.lua" dflag="131076" />
<item path="src\cocos\framework\extends\SpriteEx.lua" dflag="131076" />
<item path="src\cocos\framework\extends\MenuEx.lua" dflag="131076" />
<item path="src\cocos\framework\extends\UISlider.lua" dflag="131076" />
<item path="src\cocos\framework\extends\UIEditBox.lua" dflag="131076" />
<item path="CMakeLists.txt" dflag="131076" />
<item path="Content\src\axmol\ui\GuiConstants.lua" dflag="131076" />
<item path="Content\src\packages\mvc\AppBase.lua" dflag="131076" />
<item path="Content\src\config.lua" dflag="131076" />
<item path="Content\src\axmol\ui\DeprecatedUIFunc.lua" dflag="131076" />
<item path="Content\src\packages\mvc\init.lua" dflag="131076" />
<item path="Content\src\packages\mvc\ViewBase.lua" dflag="131076" />
<item path="Content\src\main.lua" dflag="131076" />
<item path="Content\src\axmol\extension\ExtensionConstants.lua" dflag="131076" />
<item path="Content\src\axmol\network\NetworkConstants.lua" dflag="131076" />
<item path="Content\src\axmol\framework\transition.lua" dflag="131076" />
<item path="Content\src\axmol\physics3d\physics3d-constants.lua" dflag="131076" />
<item path="Content\src\axmol\framework\extends\NodeEx.lua" dflag="131076" />
<item path="Content\src\axmol\framework\device.lua" dflag="131076" />
<item path="Content\src\axmol\framework\extends\LayerEx.lua" dflag="131076" />
<item path="Content\src\axmol\ui\DeprecatedUIEnum.lua" dflag="131076" />
<item path="Content\src\axmol\framework\display.lua" dflag="131076" />
<item path="Content\src\axmol\framework\extends\UIScrollView.lua" dflag="131076" />
<item path="Content\src\axmol\framework\components\event.lua" dflag="131076" />
<item path="Content\src\axmol\framework\extends\SpriteEx.lua" dflag="131076" />
<item path="Content\src\axmol\framework\extends\MenuEx.lua" dflag="131076" />
<item path="Content\src\axmol\framework\extends\UIEditBox.lua" dflag="131076" />
<item path="Content\src\axmol\framework\extends\UISlider.lua" dflag="131076" />
<item path="Content\src\axmol\framework\extends\UITextField.lua" dflag="131076" />
<item path="Content\src\axmol\framework\extends\UIWidget.lua" dflag="131076" />
<item path="Content\src\axmol\framework\package_support.lua" dflag="131076" />
<item path="Content\src\axmol\framework\init.lua" dflag="131076" />
<item path="Content\src\axmol\spine\SpineConstants.lua" dflag="131076" />
<item path="Content\src\axmol\framework\extends\UICheckBox.lua" dflag="131076" />
<item path="Content\src\axmol\framework\extends\UIListView.lua" dflag="131076" />
<item path="Content\src\axmol\framework\extends\UIPageView.lua" dflag="131076" />
<item path="Content\src\axmol\init.lua" dflag="131076" />
<item path="Content\src\axmol\core\deprecated.lua" dflag="131076" />
<item path="Content\src\axmol\3d\3dConstants.lua" dflag="131076" />
<item path="Content\src\axmol\core\Axmol.lua" dflag="131076" />
<item path="Content\src\app\views\MainScene.lua" dflag="131076" />
<item path="Content\src\axmol\core\DrawPrimitives.lua" dflag="131076" />
<item path="Content\src\axmol\core\functions.lua" dflag="131076" />
<item path="Content\src\app\MyApp.lua" dflag="131076" />
<item path="Content\src\axmol\core\luaoc.lua" dflag="131076" />
<item path="Content\src\axmol\core\luaj.lua" dflag="131076" />
<item path="Content\src\axmol\cocostudio\CocoStudio.lua" dflag="131076" />
<item path="Content\src\axmol\controller\ControllerConstants.lua" dflag="131076" />
<item path="Content\src\axmol\core\Constants.lua" dflag="131076" />
<item path="Content\src\axmol\cocostudio\StudioConstants.lua" dflag="131076" />
<item path="Content\src\axmol\core\bitExtend.lua" dflag="131076" />
</assets>
<debug-options>
<start-program>build\bin\Dummy\Debug\Dummy.exe</start-program>
<start-working-dir>.\Content</start-working-dir>
<start-command></start-command>
<start-command />
<search-paths>
<item>src</item>
</search-paths>
Expand Down
4 changes: 4 additions & 0 deletions tools/ci/publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ if (!$version -or ($version -eq 'auto')) {
return $axver
}
$version = get_full_version
}
elseif($version -match '.*-(beta.*|rc.*)')
{
$prerelease = 'true'
}

Push-Location $AX_ROOT
Expand Down

0 comments on commit 905fce5

Please sign in to comment.