File tree Expand file tree Collapse file tree 2 files changed +26
-4
lines changed Expand file tree Collapse file tree 2 files changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -114,8 +114,7 @@ jobs:
114
114
id : get_bds_core_version
115
115
working-directory : ll
116
116
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
119
118
rm .\behavior_packs -Force -Recurse
120
119
rm .\definitions -Force -Recurse
121
120
rm .\resource_packs -Force -Recurse
@@ -130,12 +129,12 @@ jobs:
130
129
131
130
- name : 📦 Pack Files
132
131
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\
134
133
135
134
- name : 🎉 Upload Release
136
135
uses : softprops/action-gh-release@v1
137
136
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
139
138
name : LeviLamina Packed - ${{ steps.formated_ver.outputs.ll_version }} (auto)
140
139
tag_name : auto-${{ steps.formated_ver.outputs.ll_version }}
141
140
body : |
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments