Skip to content

Commit c206e46

Browse files
committed
build.vsh
1 parent e0756a2 commit c206e46

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ The biggest missing features that will be implemented soon:
2323
- [ ] Pull requests
2424

2525
```sh
26-
sassc src/static/css/gitly.scss > src/static/css/gitly.css
27-
v .
26+
v build.vsh
2827
./gitly
2928
```
3029

build.vsh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import net.http
2+
3+
path := 'src/static/css/gitly.css'
4+
if !exists(path) {
5+
ret := system('sassc src/static/css/gitly.scss > src/static/css/gitly.css')
6+
if ret != 0 {
7+
http.download_file('https://gitly.org/css/gitly.css', path)!
8+
println("No sassc detected on this system, gitly.css has been downloaded from gitly.org.")
9+
}
10+
}
11+
12+
ret := system('v .')
13+
if ret == 0 {
14+
println('Gitly has been successfully built, run it with ./gitly')
15+
}

0 commit comments

Comments
 (0)