Skip to content

Commit f835f54

Browse files
committed
feat: add git modue
1 parent 3b5d53c commit f835f54

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

data/app-generator.appdata.xml.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<developer_name translate="no">elementary Community</developer_name>
1919
<url type="homepage">https://github.com/elementary-community/app-generator</url>
2020
<url type="bugtracker">https://github.com/elementary-community/app-generator/issues</url>
21-
<launchable type="desktop-id">io.github.elementary-community.app-generator.desktop</launchable>
21+
<launchable type="desktop-id">io.github.ecommunity.app-generator.desktop</launchable>
2222
<custom>
2323
<value key="x-appcenter-color-primary">#603461</value>
2424
<value key="x-appcenter-color-primary-text">rgb(255, 255, 255)</value>

data/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ i18n.merge_file(
3535
install: true,
3636
install_dir: get_option('datadir') / 'metainfo'
3737
)
38+

io.github.ecommunity.app-generator.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,21 @@ finish-args:
1919
- '--share=ipc'
2020
- '--socket=fallback-x11'
2121
- '--socket=wayland'
22+
- '--share=network'
23+
- '--device=dri'
24+
- '--filesystem=home'
2225

2326
# This section is where you list all the source code required to build your app.
2427
# If we had external dependencies that weren't included in our SDK, we would list
2528
# them here.
2629
modules:
30+
- name: git
31+
make-install-args:
32+
- NO_INSTALL_HARDLINKS=1
33+
sources:
34+
- type: archive
35+
url: https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.39.1.tar.xz
36+
sha256: 40a38a0847b30c371b35873b3afcf123885dd41ea3ecbbf510efa97f3ce5c161
2737
- name: app-generator
2838
buildsystem: meson
2939
sources:

src/MainWindow.vala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ public class MainWindow : Gtk.ApplicationWindow {
2222
}
2323

2424
construct {
25+
var dir = Environment.get_user_data_dir ();
26+
print ("DIR: %s".printf (dir));
27+
2528
var headerbar = new Gtk.HeaderBar () {
2629
title_widget = new Gtk.Label (null),
2730
hexpand = true

0 commit comments

Comments
 (0)