diff --git a/README.md b/README.md index aa22379..77caf31 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Now support Arch and Debian based Linux (OpenRC and SystemD). ### Build and run ``` -git clone https://git.macaw.me:3000/plant_1312/Yggtk.git +git clone https://git.macaw.me/plant_1312/Yggtk.git valac Yggtk/main.vala --pkg gtk+-3.0 --pkg json-glib-1.0 cp Yggtk/main.ui . rm -R Yggtk diff --git a/main.vala b/main.vala index eb21989..63ad29c 100644 --- a/main.vala +++ b/main.vala @@ -88,9 +88,10 @@ int download () { try { - string pm = Process.spawn_command_line_sync ("pkexec pacman -S yggdrasil --noconfirm"); + string pm; + Process.spawn_command_line_sync ("pkexec pacman -S yggdrasil --noconfirm", out pm); - if (pm = "bash: pacman: command not found\n") { + if (pm == "bash: pacman: command not found\n") { Process.spawn_command_line_sync ("wget https://2375-115685026-gh.circle-artifacts.com/0/yggdrasil-0.3.12-amd64.deb"); Process.spawn_command_line_sync ("dpkg -i yggdrasil-0.3.12-amd64.deb"); @@ -113,7 +114,7 @@ int update () { try { - Process.spawn_command_line_sync ("git clone https://git.macaw.me:3000/plant_1312/Yggtk.git"); + Process.spawn_command_line_sync ("git clone https://git.macaw.me/plant_1312/Yggtk.git"); Process.spawn_command_line_sync ("valac Yggtk/main.vala --pkg gtk+-3.0 --pkg json-glib-1.0"); Process.spawn_command_line_sync ("cp Yggtk/main.ui ."); Process.spawn_command_line_sync ("rm -R Yggtk");