浏览代码

Merge branch 'main' into rime-wanxiang

Dew-OF-Aurora 2 周之前
父节点
当前提交
4dfea29e58
共有 1 个文件被更改,包括 2 次插入3 次删除
  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