-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
46 lines (34 loc) · 1.2 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
export FLATPAK_ID := "com.github.LegitCamper.Rust-Browser"
ultralight-version := "1.3.0-linux-x64"
ultralight-file := "ultralight-sdk-" + ultralight-version + ".7z"
ultralight-url := "https://ultralight-files.sfo3.cdn.digitaloceanspaces.com/" + ultralight-file
build:
cargo build
run:
cargo run
release:
cargo build --release
release-lto:
cargo build --profile release-lto
@create-flatpak-sources:
./flatpak/venv/bin/python3 ./flatpak/flatpak-cargo-generator.py ./Cargo.lock -o ./flatpak/cargo-sources.json
@get-ultralight: clean-ultralight
mkdir ultralight
wget {{ultralight-url}}
7z x {{ultralight-file}} bin
7z x {{ultralight-file}} resources
rm {{ultralight-file}}
mv bin resources ultralight
@clean-ultralight:
rm -rf bin
rm -rf resources
rm -rf ultralight
@build-flatpak: create-flatpak-sources
flatpak-builder --force-clean --user build-dir ./flatpak/$FLATPAK_ID.json
@install-flatpak:
flatpak-builder --user --install build-dir ./flatpak/$FLATPAK_ID.json
run-flatpak:
flatpak run --user $FLATPAK_ID
export-flatpak: build-flatpak
flatpak build-export export build-dir/
flatpak build-bundle export Rust-Browser.flatpak $FLATPAK_ID