Fix build.

This commit is contained in:
plant_1312 2020-01-22 13:45:14 +00:00
parent 6e2cb4444b
commit 18c041630e
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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");