Skip to content

Commit dd1805b

Browse files
committed
U | sync to legacy
1 parent 1e5e400 commit dd1805b

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

.github/workflows/auto_pack.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ jobs:
114114
id: get_bds_core_version
115115
working-directory: ll
116116
run: |
117-
$file = Get-ChildItem -Path .\.cache\bdsdown\ -File | Select-Object -First 1
118-
"bds_core_version=$(echo $file.Name)" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
117+
"bds_core_version=$(python ..\scripts\get_bds_version.py)" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
119118
rm .\behavior_packs -Force -Recurse
120119
rm .\definitions -Force -Recurse
121120
rm .\resource_packs -Force -Recurse
@@ -130,12 +129,12 @@ jobs:
130129
131130
- name: 📦 Pack Files
132131
run: |
133-
7z a ll_${{ steps.formated_ver.outputs.ll_version }}-bds_${{ steps.get_bds_core_version.outputs.bds_core_version }} .\ll\
132+
7z a ll_${{ steps.formated_ver.outputs.ll_version }}-bds_${{ steps.get_bds_core_version.outputs.bds_core_version }}.zip .\ll\
134133
135134
- name: 🎉 Upload Release
136135
uses: softprops/action-gh-release@v1
137136
with:
138-
files: ll_${{ steps.formated_ver.outputs.ll_version }}-bds_${{ steps.get_bds_core_version.outputs.bds_core_version }}
137+
files: ll_${{ steps.formated_ver.outputs.ll_version }}-bds_${{ steps.get_bds_core_version.outputs.bds_core_version }}.zip
139138
name: LeviLamina Packed - ${{ steps.formated_ver.outputs.ll_version }} (auto)
140139
tag_name: auto-${{ steps.formated_ver.outputs.ll_version }}
141140
body: |

scripts/get_bds_version.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import json
2+
import re
3+
try:
4+
5+
with open(".\\.lip\\metadata\\github.com%2FLiteLDev%2Fbds.json") as file:
6+
json_data = file.read()
7+
except FileNotFoundError:
8+
print("File not found")
9+
raise SystemExit
10+
except Exception as e:
11+
print(e)
12+
raise SystemExit
13+
data = json.loads(json_data)
14+
15+
post_install_command = data['commands']['post_install'][0]
16+
match = re.search(r'version://windows/([^\\]+)', post_install_command)
17+
18+
if match:
19+
version_number = match.group(1)
20+
print(version_number)
21+
else:
22+
print("???")
23+

0 commit comments

Comments
 (0)