tangled
alpha
login
or
join now
shrimple.srht.site
/
OuchBrowser.NET
1
fork
atom
focus on your browsing
browser
web-browser
1
fork
atom
overview
issues
pulls
pipelines
add quality-of-life fixes to justfile
woof.monster
1 week ago
38ca7c2b
7d214a7b
verified
This commit was signed with the committer's
known signature
.
woof.monster
SSH Key Fingerprint:
SHA256:Zx8o/400UTtWXXs3qwjYiENbQk7UHKUPMRSCpm3D2QA=
+19
-11
1 changed file
expand all
collapse all
unified
split
Justfile
+19
-11
Justfile
···
4
4
ID := "site.srht.shrimple.OuchBrowser"
5
5
BLUEPRINT_FILES := "OuchBrowser/UI/Builder/Window.blp OuchBrowser/UI/Builder/Preferences.blp OuchBrowser/UI/Builder/About.blp"
6
6
7
7
+
alias fmt := format
8
8
+
7
9
run: build-blueprint compile-resources
8
10
dotnet run --project OuchBrowser
9
11
···
13
15
publish: build-blueprint compile-resources
14
16
dotnet publish OuchBrowser -c Release
15
17
16
16
-
fmt:
18
18
+
format:
17
19
blueprint-compiler format -f -t -s 4 {{ BLUEPRINT_FILES }}
18
20
dotnet format
19
19
-
21
21
+
22
22
+
# compiles all blueprint files
20
23
[group("build")]
21
24
build-blueprint:
22
25
blueprint-compiler batch-compile \
···
24
27
OuchBrowser/UI/Builder \
25
28
{{ BLUEPRINT_FILES }}
26
29
30
30
+
# compiles gresources for icons and other miscellaneous assets
27
31
[group("build")]
28
32
compile-resources:
29
29
-
@glib-compile-resources \
33
33
+
glib-compile-resources \
30
34
--sourcedir OuchBrowser \
31
35
--target=OuchBrowser/OuchBrowser.app.gresource \
32
36
OuchBrowser/OuchBrowser.gresource.xml
33
37
38
38
+
# builds an release flatpak file for distribution
34
39
[group("build")]
35
40
build-flatpak:
36
36
-
@flatpak-builder \
41
41
+
flatpak-builder \
37
42
--force-clean \
38
43
--user \
39
44
--repo=.build/repo \
40
45
.build \
41
46
{{ ID }}.json
42
42
-
@flatpak build-bundle \
47
47
+
flatpak build-bundle \
43
48
.build/repo \
44
49
{{ ID }}.flatpak \
45
50
{{ ID }} \
46
51
--runtime-repo=https://flathub.org/repo/flathub.flatpakrepo
52
52
+
rm -rf .flatpak-builder .repo
47
53
54
54
+
# compiles gsettings schemas
48
55
[group("build")]
49
56
build-schemas:
50
50
-
@mkdir -p {{ PREFIX }}/share/glib-2.0/schemas
51
51
-
@cp OuchBrowser/OuchBrowser.gschema.xml {{ PREFIX }}/share/glib-2.0/schemas
52
52
-
@glib-compile-schemas \
57
57
+
mkdir -p {{ PREFIX }}/share/glib-2.0/schemas
58
58
+
cp OuchBrowser/OuchBrowser.gschema.xml {{ PREFIX }}/share/glib-2.0/schemas
59
59
+
glib-compile-schemas \
53
60
{{ PREFIX }}/share/glib-2.0/schemas \
54
61
>/dev/null 2>/dev/null
55
55
-
62
62
+
63
63
+
# compiles translations and installs them
56
64
[group("build")]
57
65
build-translations:
58
58
-
@mkdir -p {{ PREFIX }}/share/locale/pt_BR/LC_MESSAGES
59
59
-
@msgfmt -o {{ PREFIX }}/share/locale/pt_BR/LC_MESSAGES/OuchBrowser.mo OuchBrowser/Gettext/pt_BR.po
66
66
+
mkdir -p {{ PREFIX }}/share/locale/pt_BR/LC_MESSAGES
67
67
+
msgfmt -o {{ PREFIX }}/share/locale/pt_BR/LC_MESSAGES/OuchBrowser.mo OuchBrowser/Gettext/pt_BR.po