Răsfoiți Sursa

fix for linux and mac

Dew-OF-Aurora 1 lună în urmă
părinte
comite
64db5e9c1c
2 a modificat fișierele cu 2 adăugiri și 7 ștergeri
  1. 1 4
      os/LinuxDistro.rb
  2. 1 3
      os/MacOS.rb

+ 1 - 4
os/LinuxDistro.rb

@@ -71,10 +71,7 @@ https://wiki.archlinux.org/title/Rime
     class CopyCustomConfigJob < Job
       def call
         puts intro
-        system("cp ./custom/*.yaml #{Store.config_path}/")
-        sleep 1
-        system("cp ./custom/custom_phrase.txt #{Store.config_path}/")
-        sleep 1
+        system("cp -rf custom/. #{Store.config_path}/")
         return :next
       end
     end

+ 1 - 3
os/MacOS.rb

@@ -37,9 +37,7 @@ module RimeDeploy
     class CopyCustomConfigJob < Job
       def call
         puts intro
-        system("cp ./custom/*.yaml #{Store.config_path}/")
-        sleep 1
-        system("cp ./custom/custom_phrase.txt #{Store.config_path}/")
+        system("cp -rf custom/. #{Store.config_path}/")
         sleep 1
         return :next
       end