-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e06aba
commit 564e0cd
Showing
9 changed files
with
217 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,5 +17,6 @@ version/* | |
.idea/misc.xml | ||
.idea/vcs.xml | ||
.idea/modules.xml | ||
*.zip | ||
venv/ | ||
log/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ | |
- 增加和假人联动的功能 | ||
### bug修复 | ||
- 修复prof测试红石用时计算错误的问题(#32) | ||
### 开发 | ||
- 增加release的打包功能 | ||
## 1.16.4-0.9.40 | ||
|
||
### 开发 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import builtins | ||
import os | ||
from os import path | ||
import zipfile | ||
|
||
|
||
build_dir = '../cmake-build-release' | ||
lang_folders = 'lang/' | ||
config_file = 'trapdoor-config.json' | ||
other_files = ['../changelog.md','../README.md','../README_zh.md','../trapdoor-disclaimer.md','../LICENSE'] | ||
|
||
|
||
#get dll files | ||
dll_files = [] | ||
for file in os.listdir(build_dir): | ||
if file.endswith('.dll'): | ||
dll_files.append(file) | ||
|
||
if len(dll_files) == 0: | ||
input('warning: no valid files') | ||
exit(0) | ||
dll_files.sort() | ||
tips = 'choose one to pack\n' | ||
index = 0 | ||
for file in reversed(dll_files): | ||
tips += '['+ str(index)+ '] : '+ file+'\n' | ||
index += 1 | ||
|
||
#choose version | ||
idx = 0 | ||
if len(dll_files) > 1: | ||
idx = input(tips) | ||
idx = int(idx) | ||
if idx <0 or idx >= len(dll_files): | ||
input('invalid files\n') | ||
exit(0) | ||
|
||
|
||
dll_file = dll_files[len(dll_files)-1-idx] | ||
|
||
|
||
## check lang and config.json | ||
if not (path.exists(lang_folders) and path.exists(config_file)): | ||
input('can not find land folder or config_file') | ||
exit(0) | ||
|
||
## check other files | ||
for other_file in other_files: | ||
if not path.exists(other_file): | ||
input('can not find file'+other_file+'\n') | ||
exit(0) | ||
|
||
#get version | ||
version = dll_file[:-4] | ||
print('version is '+version) | ||
print('begin packing...') | ||
|
||
#begin pack | ||
release_zip_file = zipfile.ZipFile(version +'.zip','w') | ||
release_zip_file.write(build_dir+'/'+ dll_file,arcname=dll_file) | ||
print('pack: ' + dll_file) | ||
for file in os.listdir(lang_folders): | ||
if file.endswith('.json'): | ||
print('pack: ' + file) | ||
release_zip_file.write(lang_folders+file) | ||
for other_file in other_files: | ||
other_file_name = other_file[3:] | ||
print('pack: ' + other_file_name) | ||
release_zip_file.write(other_file,arcname=other_file_name) | ||
release_zip_file.close() | ||
input('success pack release:' + version+'.zip\n') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
{ | ||
"EULA":true, | ||
"commands": { | ||
"/tick": { | ||
"enable": true, | ||
"permissionLevel": 1 | ||
}, | ||
"/village": { | ||
"enable": true, | ||
"permissionLevel": 0 | ||
}, | ||
"/prof": { | ||
"enable": true, | ||
"permissionLevel": 0 | ||
}, | ||
"/mspt": { | ||
"enable": true, | ||
"permissionLevel": 0 | ||
}, | ||
"/o": { | ||
"enable": true, | ||
"permissionLevel": 1 | ||
}, | ||
"/c": { | ||
"enable": true, | ||
"permissionLevel": 1 | ||
}, | ||
"/s": { | ||
"enable": true, | ||
"permissionLevel": 1 | ||
}, | ||
"/hsa": { | ||
"enable": true, | ||
"permissionLevel": 0 | ||
}, | ||
"/func": { | ||
"enable": true, | ||
"permissionLevel": 1 | ||
}, | ||
"/counter": { | ||
"enable": true, | ||
"permissionLevel": 1 | ||
}, | ||
"/td?": { | ||
"enable": true, | ||
"permissionLevel": 0 | ||
}, | ||
"/os": { | ||
"enable": true, | ||
"permissionLevel": 0 | ||
}, | ||
"/apicfg": { | ||
"enable": true, | ||
"permissionLevel": 1 | ||
}, | ||
"/draw": { | ||
"enable": true, | ||
"permissionLevel": 0 | ||
}, | ||
"/slime": { | ||
"enable": true, | ||
"permissionLevel": 0 | ||
}, | ||
"/backup": { | ||
"enable": true, | ||
"permissionLevel": 1 | ||
}, | ||
"/self": { | ||
"enable": true, | ||
"permissionLevel": 0 | ||
}, | ||
"/cl": { | ||
"enable": true, | ||
"permissionLevel": 0 | ||
}, | ||
"/dev": { | ||
"enable": true, | ||
"permissionLevel": 1 | ||
}, | ||
"/here": { | ||
"enable": true, | ||
"permissionLevel": 0 | ||
}, | ||
|
||
"/l": { | ||
"enable": true, | ||
"permissionLevel": 1 | ||
}, | ||
"/lang":{ | ||
"enable":true, | ||
"permissionLevel": 1 | ||
}, | ||
"/spawn":{ | ||
"enable":true, | ||
"permissionLevel": 0 | ||
}, | ||
"/fakeplayer":{ | ||
"enable":true, | ||
"permissionLevel": 1 | ||
}, | ||
"/rs":{ | ||
"enable":true, | ||
"permissionLevel": 1 | ||
} | ||
}, | ||
"lowLevelVanillaCommands":[ | ||
"stop", | ||
"whitelist" | ||
], | ||
|
||
"server":{ | ||
"levelName": "Bedrock level", | ||
"lang": "zh_cn" | ||
}, | ||
|
||
"village":{ | ||
"bound": "red", | ||
"spawn": "red", | ||
"poiQuery": "red", | ||
"center": "minecraft:heart_particle" | ||
}, | ||
"functionsEnable":{ | ||
"hopperCounter": false, | ||
"spawnHelper":false, | ||
"cactusRotate":false, | ||
"simpleDraw":false, | ||
"playerStat":false | ||
}, | ||
"selfEnable":{ | ||
"chunkShow":true, | ||
"distanceMeasure":true, | ||
"redstoneStick":true | ||
} | ||
} |