Skip to content

Commit acb81aa

Browse files
committed
Move manifest.json to 1k/ and update gradle to 9.3.0
1 parent 28b5d41 commit acb81aa

File tree

22 files changed

+34
-23
lines changed

22 files changed

+34
-23
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
run: |
5151
$AX_ROOT = $(pwd).Path
5252
./setup.ps1
53-
./1k/fetch.ps1 -uri 'oboe' -prefix $(Join-Path $AX_ROOT 'cache') -manifest $(Join-Path $AX_ROOT 'manifest.json')
53+
./1k/fetch.ps1 -uri 'oboe' -prefix $(Join-Path $AX_ROOT 'cache') -manifest $(Join-Path $AX_ROOT '1k/manifest.json')
5454
axmol -xc '-DAX_WITH_LZ4=ON,-DAX_WITH_CARES=ON,-DAX_WITH_YAML_CPP=ON,-DAX_WITH_KCP=ON' -c
5555
$input_commitish = "${{ github.event.inputs.commitish }}"
5656
if (!$input_commitish) { $input_commitish = $(git -C $AX_ROOT branch --show-current) }

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ tests/lua-tests/project/proj.tizen/res/
171171
# Ignore extensions/local.cmake
172172
extensions/local.cmake
173173

174+
/**/*/gradle-daemon-jvm.properties
175+
174176
# Ignore x-studio folder
175177
.xs
176178

1k/1kiss.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ $1k.println("proj_dir=$((Get-Location).Path), install_prefix=$install_prefix")
515515
# 1kdist
516516
$sentry_file = Join-Path $PSScriptRoot '.gitee'
517517
$mirror = if ($1k.isfile($sentry_file)) { 'gitee' } else { 'github' }
518-
$mirror_conf_file = $1k.realpath("$PSScriptRoot/../manifest.json")
518+
$mirror_conf_file = $1k.realpath("$PSScriptRoot/manifest.json")
519519
$mirror_current = $null
520520
$devtools_url_base = $null
521521
$1kdist_ver = $null

1k/build.profiles

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ axslcc=3.4.0+
1010

1111
# The cmake, @gradle @axmol-cmdline
1212
# as latest as possible
13-
cmake=4.2.0~4.2.1+
13+
cmake=4.2.0~4.2.2+
1414

1515
# The ninja
1616
ninja=1.10.0~1.13.2+
@@ -58,7 +58,7 @@ min_sdk=21
5858

5959
# The gradle version, @setup.ps1
6060
# as latest as possible
61-
gradle=9.2.1
61+
gradle=9.3.0
6262

6363
# The android gradle plugin, @setup.ps1
6464
# as stable as possible, match with build-tools,android-studio

1k/fetch.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function(_1kfetch_init)
1717
endif()
1818

1919
if(NOT _1kfetch_manifest)
20-
file(REAL_PATH "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/../manifest.json" _1kfetch_manifest)
20+
file(REAL_PATH "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/manifest.json" _1kfetch_manifest)
2121
set(_1kfetch_manifest "${_1kfetch_manifest}" CACHE STRING "" FORCE)
2222
endif()
2323

manifest.json renamed to 1k/manifest.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"versions": {
3-
"1kdist": "v110",
3+
"1kdist": "v111",
44
"oboe": "1.10.0",
55
"kcp": "v1.7-f4f3a89",
66
"opus": "v1.5.2",
@@ -27,5 +27,9 @@
2727
"sample-assets": "simdsoft/axmol-sample-assets.git",
2828
"axslcc": "simdsoft/axslcc/releases/download"
2929
}
30+
},
31+
"gradle-mirrors":{
32+
"origin": "https://services.gradle.org/distributions",
33+
"tencent": "https://mirrors.cloud.tencent.com/gradle"
3034
}
3135
}

3rdparty/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ endif()
6565
add_library(3rdparty INTERFACE)
6666

6767
set(_1kfetch_cache_dir "${_AX_ROOT}/cache" CACHE STRING "" FORCE)
68-
set(_1kfetch_manifest "${_AX_ROOT}/manifest.json" CACHE STRING "" FORCE)
68+
set(_1kfetch_manifest "${_AX_ROOT}/1k/manifest.json" CACHE STRING "" FORCE)
6969

7070
# fetch prebuilts of 1kdist and git sources
7171
include(${_AX_ROOT}/1k/fetch.cmake)

INFRA.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
## gradle
2020

2121
- [![github](https://img.shields.io/github/v/release/gradle/gradle?label=Upstream)](https://github.com/gradle/gradle)
22-
- Version: 9.2.1
22+
- Version: 9.3.0
2323
- License: Apache-2.0
2424
- Platform: Android
2525
- Manged by: `1k/build.profiles`

setup.ps1

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
# PowerShell Param statement : every line must end in #\ except the last line must with <#\
44
# And, you can't use backticks in this section #\
55
# refer https://gist.github.com/ryanmaclean/a1f3135f49c1ab3fa7ec958ac3f8babe #\
6-
param( [switch]$updateAdt #\
6+
param( [switch]$updateAdt, #\
7+
[string]$gradleMirror #\
78
) <#\
89
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `
910
#vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
@@ -438,13 +439,18 @@ if ($updateAdt) {
438439
$gradle_tag = "v$gradleVer"
439440
}
440441
442+
if (!$gradleMirror) { $gradleMirror = 'origin' }
443+
444+
$gradle_base_url = $mirror_conf.'gradle-mirrors'.$gradleMirror
445+
$gradle_base_url = $gradle_base_url.Replace(':', "\:")
446+
441447
$gradle_settings_file = Join-Path $aproj_source_gradle_wrapper 'gradle-wrapper.properties'
442448
$settings_lines = Get-Content $gradle_settings_file
443449
$settings_lines[0] = "#$current_time"
444450
for ($i = 1; $i -lt $settings_lines.Count; ++$i) {
445451
$line_text = $settings_lines[$i]
446452
if ($line_text -match '^distributionUrl\s*=.*') {
447-
$settings_lines[$i] = [Regex]::Replace($line_text, 'gradle-.+-bin.zip', "gradle-$gradleVer-bin.zip")
453+
$settings_lines[$i] = "distributionUrl=$gradle_base_url/gradle-$gradleVer-bin.zip"
448454
break
449455
}
450456
}
542 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)