Răsfoiți Sursa

Merge branch 'main' into rime-wanxiang

Dew-OF-Aurora 2 săptămâni în urmă
părinte
comite
4dfea29e58
1 a modificat fișierele cu 2 adăugiri și 3 ștergeri
  1. 2 3
      os/Windows.rb

+ 2 - 3
os/Windows.rb

@@ -57,9 +57,8 @@ You can download Rime from: https://rime.im/download/
     class CopyCustomConfigJob < Job
       def call
         puts intro
-        system("copy .\\custom\\*.yaml #{Store.config_path}")
-        sleep 1
-        system("copy .\\custom\\custom_phrase.txt #{Store.config_path}")
+        ## 复制custom下所有文件, 包括空文件夹
+        system("xcopy \"custom\" \"#{Store.config_path}\" /E /I /Y")
         sleep 1
         return :next
       end