mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2025-02-07 19:36:46 +08:00
修复一些小问题
This commit is contained in:
parent
556ce74cfb
commit
81ae7ae146
@ -17,7 +17,7 @@ Terms & Conditions: License.md in the root directory
|
|||||||
# 若需转载或借鉴 许可声明请查看仓库目录下的 License.md
|
# 若需转载或借鉴 许可声明请查看仓库目录下的 License.md
|
||||||
|
|
||||||
|
|
||||||
__version__ = "1.1.0"
|
__version__ = "1.1.1"
|
||||||
__all__ = []
|
__all__ = []
|
||||||
__author__ = (("金羿", "Eilles Wan"), ("诸葛亮与八卦阵", "bgArray"), ("鸣凤鸽子", "MingFengPigeon"))
|
__author__ = (("金羿", "Eilles Wan"), ("诸葛亮与八卦阵", "bgArray"), ("鸣凤鸽子", "MingFengPigeon"))
|
||||||
|
|
||||||
|
@ -56,13 +56,18 @@ def to_function_addon_in_score(
|
|||||||
shutil.rmtree(f"{data_cfg.dist_path}/temp/functions/")
|
shutil.rmtree(f"{data_cfg.dist_path}/temp/functions/")
|
||||||
os.makedirs(f"{data_cfg.dist_path}/temp/functions/mscplay")
|
os.makedirs(f"{data_cfg.dist_path}/temp/functions/mscplay")
|
||||||
|
|
||||||
|
|
||||||
# 写入manifest.json
|
# 写入manifest.json
|
||||||
open(f"{data_cfg.dist_path}/temp/manifest.json", "w", encoding="utf-8").write(
|
with open(f"{data_cfg.dist_path}/temp/manifest.json", "w", encoding="utf-8") as f:
|
||||||
json.dumps(
|
json.dump(
|
||||||
behavior_mcpack_manifest("midiPlay"),
|
behavior_mcpack_manifest(
|
||||||
|
pack_description=f"{midi_cvt.midi_music_name} 音乐播放包,MCFUNCTION(MCPACK) 计分播放器 - 由 音·创 生成",
|
||||||
|
pack_name=midi_cvt.midi_music_name+"播放",
|
||||||
|
modules_description=f"无 - 由 音·创 生成",
|
||||||
|
),
|
||||||
|
fp=f,
|
||||||
indent=4,
|
indent=4,
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
# 将命令列表写入文件
|
# 将命令列表写入文件
|
||||||
index_file = open(
|
index_file = open(
|
||||||
|
@ -72,11 +72,12 @@ def to_mcstructure_addon_in_delay(
|
|||||||
with open(f"{data_cfg.dist_path}/temp/manifest.json", "w", encoding="utf-8") as f:
|
with open(f"{data_cfg.dist_path}/temp/manifest.json", "w", encoding="utf-8") as f:
|
||||||
json.dump(
|
json.dump(
|
||||||
behavior_mcpack_manifest(
|
behavior_mcpack_manifest(
|
||||||
pack_description=f"Music {midi_cvt.midi_music_name} Play pack, structure in delay - Generated by Musicreater",
|
pack_description=f"{midi_cvt.midi_music_name} 音乐播放包,MCSTRUCTURE(MCPACK) 延迟播放器 - 由 音·创 生成",
|
||||||
pack_name=midi_cvt.midi_music_name,
|
pack_name=midi_cvt.midi_music_name+"播放",
|
||||||
modules_description=f"None - Generated by Musicreater",
|
modules_description=f"无 - 由 音·创 生成",
|
||||||
),
|
),
|
||||||
fp=f,
|
fp=f,
|
||||||
|
indent=4,
|
||||||
)
|
)
|
||||||
|
|
||||||
# 将命令列表写入文件
|
# 将命令列表写入文件
|
||||||
|
Loading…
x
Reference in New Issue
Block a user