-
-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathabout.js
More file actions
103 lines (95 loc) · 3.47 KB
/
about.js
File metadata and controls
103 lines (95 loc) · 3.47 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import Gtk from "gi://Gtk";
import { gettext as _ } from "gettext";
import GLib from "gi://GLib";
import Adw from "gi://Adw";
import {
getGIRepositoryVersion,
getGjsVersion,
getGLibVersion,
} from "../troll/src/util.js";
import { getFlatpakInfo } from "./flatpak.js";
export default function About({ application }) {
const flatpak_info = getFlatpakInfo();
const debug_info = `
${pkg.name} ${pkg.version}
${GLib.get_os_info("ID")} ${GLib.get_os_info("VERSION_ID")}
GJS ${getGjsVersion()}
Adw ${getGIRepositoryVersion(Adw)}
GTK ${getGIRepositoryVersion(Gtk)}
GLib ${getGLibVersion()}
Flatpak ${flatpak_info.get_string("Instance", "flatpak-version")}
${getValaVersion()}
`.trim();
const dialog = new Adw.AboutDialog({
application_name: "Workbench",
developer_name: "Sonny Piers",
copyright: "© 2022 Sonny Piers",
license_type: Gtk.License.GPL_3_0_ONLY,
version: pkg.version,
website: "https://workbench.sonny.re",
application_icon: pkg.name,
issue_url: "https://workbench.sonny.re/feedback",
debug_info,
developers: [
"Sonny Piers https://sonny.re",
"Lorenz Wildberg https://gitlab.gnome.org/lwildberg",
"Andy Holmes https://gitlab.gnome.org/andyholmes",
"Julian Hofer https://julianhofer.eu/",
"Marco Köpcke https://github.com/theCapypara",
],
designers: [
"Sonny Piers https://sonny.re",
"Tobias Bernard <tbernard@gnome.org>",
"Brage Fuglseth https://bragefuglseth.dev",
],
artists: [
"Tobias Bernard <tbernard@gnome.org>",
"Jakub Steiner https://jimmac.eu",
"Brage Fuglseth https://bragefuglseth.dev",
],
});
dialog.add_credit_section(_("Contributors"), [
"Akshay Warrier https://github.com/AkshayWarrier",
"Ben Foote http://www.bengineeri.ng",
"Brage Fuglseth https://bragefuglseth.dev",
"Hari Rana (TheEvilSkeleton) https://theevilskeleton.gitlab.io",
"Sriyansh Shivam https://linktr.ee/sonic_here",
"Angelo Verlain https://www.vixalien.com",
"bazylevnik0 https://github.com/bazylevnik0",
"Felipe Kinoshita https://mastodon.social/@fkinoshita",
"Karol Lademan https://github.com/karl0d",
"Nasah Kuma https://www.mantohnasah.com/",
"Jose Hunter https://github.com/halfmexican/",
"Akunne Pascal https://github.com/Kodecheff",
"JCWasmx86 https://github.com/JCWasmx86",
"Alex (PaladinDev) https://github.com/SpikedPaladin",
"Diego Iván M.E https://github.com/Diego-Ivan",
"Rasmus Thomsen <oss@cogitri.dev>",
"Marvin W https://github.com/mar-v-in",
"Saad Khan https://github.com/saadulkh",
"Adeel Ahmed Qureshi https://github.com/itsAdee",
"Muhammad Bilal https://github.com/mbilal234",
"Onkar https://github.com/onkarrai06",
"Sabrina Meindlhumer https://github.com/m-sabrina",
"Urtsi Santsi <urtsi.santsi@proton.me>",
"Roland Lötscher https://github.com/rolandlo",
"Gregor Niehl https://fosstodon.org/@gregorni",
"Jamie Gravendeel https://jamie.garden",
"Bharat Tyagi https://github.com/BharatAtbrat",
"Jan Fooken https://git.janvhs.com",
"Vladimir Vaskov https://github.com/Rirusha",
"Nokse https://github.com/Nokse22",
// Add yourself as
// "John Doe",
// or
// "John Doe <john@example.com>",
// or
// "John Doe https://john.com",
]);
dialog.present(application.active_window);
return { dialog };
}
function getValaVersion() {
const [, data] = GLib.spawn_command_line_sync("valac --version");
return new TextDecoder().decode(data).trim();
}