@@ -827,7 +827,6 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
827827]
828828replace_in_file (file_path , translation )
829829
830-
831830file_path = 'src/public/app/dialogs/options/password.js'
832831translation = [
833832 '>{{click here to reset it}}<' ,
@@ -846,7 +845,6 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
846845]
847846replace_in_file (file_path , translation )
848847
849-
850848file_path = 'src/public/app/dialogs/options/shortcuts.js'
851849translation = [
852850 '>{{Keyboard shortcuts}}<' ,
@@ -2883,7 +2881,6 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
28832881replace_in_file (file_path , translation )
28842882replace_in_file (file_path , translation , TARGET_PATH )
28852883
2886-
28872884# 0.52
28882885# 使用 Excalidraw 内置的语言文件
28892886# use Excalidraw built-in language file
@@ -2900,7 +2897,6 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
29002897 with open (file_full_path , 'w' ) as f :
29012898 f .write (content )
29022899
2903-
29042900# 应用补丁
29052901# apply patch
29062902os .chdir (BASE_PATH )
@@ -2934,7 +2930,14 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
29342930# ckeditor
29352931src_path = f'{ CLIENT_PATH } resources/app/libraries/ckeditor/ckeditor.js'
29362932dest_path = f'{ PATCH_FOLDER } /libraries/ckeditor/ckeditor.js'
2937- os .makedirs (os .path .dirname (dest_path ), exist_ok = True )
2933+ os .makedirs (os .path .dirname (dest_path ), exist_ok = True )
2934+ shutil .copy (src_path , dest_path )
2935+
2936+ # excalidraw 自定义字体
2937+ # excalidraw custom font
2938+ src_path = f'{ script_path } /font/muyao-shouxie.ttf'
2939+ dest_path = f'{ PATCH_FOLDER } /node_modules/@excalidraw/excalidraw/dist/excalidraw-assets/Virgil.woff2'
2940+ os .makedirs (os .path .dirname (dest_path ), exist_ok = True )
29382941shutil .copy (src_path , dest_path )
29392942
29402943if LANG == 'cn' :
@@ -2947,7 +2950,7 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
29472950 os .system ('cd demo-cn && 7z -scsutf-8 a demo-cn.zip ./* && mv demo-cn.zip ../' )
29482951 src_path = f'demo-cn.zip'
29492952 dest_path = f'{ PATCH_FOLDER } /db/demo.zip'
2950- os .makedirs (os .path .dirname (dest_path ), exist_ok = True )
2953+ os .makedirs (os .path .dirname (dest_path ), exist_ok = True )
29512954 shutil .copy (src_path , dest_path )
29522955
29532956if missing_files :
0 commit comments