|
@@ -35,19 +35,22 @@ https://wiki.archlinux.org/title/Rime
|
|
|
[
|
|
[
|
|
|
"ibus-rime",
|
|
"ibus-rime",
|
|
|
-> do
|
|
-> do
|
|
|
- LinuxDistro.config_path = LinuxDistroJobGroup::ConfigPathIbus
|
|
|
|
|
|
|
+ LinuxDistroJobGroup.config_path =
|
|
|
|
|
+ LinuxDistroJobGroup::ConfigPathIbus
|
|
|
end
|
|
end
|
|
|
],
|
|
],
|
|
|
[
|
|
[
|
|
|
"fcitx-rime",
|
|
"fcitx-rime",
|
|
|
-> do
|
|
-> do
|
|
|
- LinuxDistro.config_path = LinuxDistroJobGroup::ConfigPathFcitx
|
|
|
|
|
|
|
+ LinuxDistroJobGroup.config_path =
|
|
|
|
|
+ LinuxDistroJobGroup::ConfigPathFcitx
|
|
|
end
|
|
end
|
|
|
],
|
|
],
|
|
|
[
|
|
[
|
|
|
"fcitx5-rime",
|
|
"fcitx5-rime",
|
|
|
-> do
|
|
-> do
|
|
|
- LinuxDistro.config_path = LinuxDistroJobGroup::ConfigPathFcitx5
|
|
|
|
|
|
|
+ LinuxDistroJobGroup.config_path =
|
|
|
|
|
+ LinuxDistroJobGroup::ConfigPathFcitx5
|
|
|
end
|
|
end
|
|
|
],
|
|
],
|
|
|
[
|
|
[
|
|
@@ -65,7 +68,7 @@ https://wiki.archlinux.org/title/Rime
|
|
|
def call
|
|
def call
|
|
|
puts intro
|
|
puts intro
|
|
|
system(
|
|
system(
|
|
|
- "mv #{LinuxDistro.config_path} #{LinuxDistro.config_path}.#{Time.now.to_i}.old"
|
|
|
|
|
|
|
+ "mv #{LinuxDistroJobGroup.config_path} #{LinuxDistroJobGroup.config_path}.#{Time.now.to_i}.old"
|
|
|
)
|
|
)
|
|
|
sleep 1
|
|
sleep 1
|
|
|
return :next
|
|
return :next
|
|
@@ -76,7 +79,7 @@ https://wiki.archlinux.org/title/Rime
|
|
|
def call
|
|
def call
|
|
|
puts intro
|
|
puts intro
|
|
|
system(
|
|
system(
|
|
|
- "git clone --depth=1 #{Config::RIME_CONFIG_REPO} #{LinuxDistro.config_path}"
|
|
|
|
|
|
|
+ "git clone --depth=1 #{Config::RIME_CONFIG_REPO} #{LinuxDistroJobGroup.config_path}"
|
|
|
)
|
|
)
|
|
|
sleep 1
|
|
sleep 1
|
|
|
return :next
|
|
return :next
|
|
@@ -86,8 +89,12 @@ https://wiki.archlinux.org/title/Rime
|
|
|
class CopyCustomConfigJob < Job
|
|
class CopyCustomConfigJob < Job
|
|
|
def call
|
|
def call
|
|
|
puts intro
|
|
puts intro
|
|
|
- system("cp ./custom/default.custom.yaml #{LinuxDistro.config_path}/")
|
|
|
|
|
- system("cp ./custom/squirrel.custom.yaml #{LinuxDistro.config_path}/")
|
|
|
|
|
|
|
+ system(
|
|
|
|
|
+ "cp ./custom/default.custom.yaml #{LinuxDistroJobGroup.config_path}/"
|
|
|
|
|
+ )
|
|
|
|
|
+ system(
|
|
|
|
|
+ "cp ./custom/squirrel.custom.yaml #{LinuxDistroJobGroup.config_path}/"
|
|
|
|
|
+ )
|
|
|
sleep 1
|
|
sleep 1
|
|
|
return :next
|
|
return :next
|
|
|
end
|
|
end
|
|
@@ -102,7 +109,7 @@ https://wiki.archlinux.org/title/Rime
|
|
|
"DEPLOY".yellow + " button."
|
|
"DEPLOY".yellow + " button."
|
|
|
puts "Enjoy~ 🍻"
|
|
puts "Enjoy~ 🍻"
|
|
|
puts "more info:".yellow
|
|
puts "more info:".yellow
|
|
|
- puts "Config path: #{LinuxDistro.config_path}/"
|
|
|
|
|
|
|
+ puts "Config path: #{LinuxDistroJobGroup.config_path}/"
|
|
|
return :next
|
|
return :next
|
|
|
end
|
|
end
|
|
|
end
|
|
end
|