-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
70 changed files
with
10,730 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# EditorConfig <http://EditorConfig.org> | ||
root = true | ||
|
||
# elementary defaults | ||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = tab | ||
indent_style = space | ||
insert_final_newline = true | ||
max_line_length = 80 | ||
tab_width = 4 | ||
|
||
[{*.xml,*.xml.in,*.yml}] | ||
tab_width = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
build/* | ||
debian/build/* | ||
debian/com.github.kjlaw89.archetype.debhelper.log | ||
debian/com.github.kjlaw89.archetype.substvars | ||
debian/com.github.kjlaw89.archetype/ | ||
debian/debhelper-build-stamp | ||
debian/files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
|
||
language: node_js | ||
|
||
node_js: | ||
- lts/* | ||
|
||
sudo: required | ||
|
||
services: | ||
- docker | ||
|
||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- libstdc++-5-dev | ||
|
||
cache: | ||
directories: | ||
- /tmp/liftoff | ||
|
||
matrix: | ||
include: | ||
- env: DIST=loki | ||
- env: DIST=juno | ||
|
||
install: | ||
- npm install @elementaryos/houston | ||
|
||
script: | ||
- houston ci | ||
--name-domain com.github.kjlaw89.archetype | ||
--distribution $DIST | ||
--com.github.kjlaw89.archetype --run-tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/ | ||
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/ | ||
!_TAG_PROGRAM_AUTHOR Darren Hiebert /[email protected]/ | ||
!_TAG_PROGRAM_NAME Exuberant Ctags // | ||
!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/ | ||
!_TAG_PROGRAM_VERSION 5.9~svn20110310 // | ||
post_install.py ../data/templates/window-app/post_install.py 1;" kind:file line:1 | ||
post_install.py ../post_install.py 1;" kind:file line:1 | ||
schemadir ../data/templates/window-app/post_install.py /^schemadir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'glib-2.0', 'schemas')$/;" kind:variable line:6 | ||
schemadir ../post_install.py /^schemadir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'glib-2.0', 'schemas')$/;" kind:variable line:6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
KJ Lawrence <[email protected]> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
#!/bin/bash | ||
|
||
arg=$1 | ||
|
||
function initialize { | ||
meson build | ||
result=$? | ||
|
||
if [ $result -gt 0 ]; then | ||
echo "Unable to initialize, please review log" | ||
exit 1 | ||
fi | ||
|
||
cd build | ||
|
||
ninja | ||
|
||
result=$? | ||
|
||
if [ $result -gt 0 ]; then | ||
echo "Unable to build project, please review log" | ||
exit 2 | ||
fi | ||
} | ||
|
||
case $1 in | ||
"clean") | ||
sudo rm -rf ./build | ||
;; | ||
"generate-i18n") | ||
initialize | ||
ninja com.github.kjlaw89.archetype-pot | ||
ninja com.github.kjlaw89.archetype-update-po | ||
;; | ||
"install") | ||
initialize | ||
sudo ninja install | ||
;; | ||
"install-deps") | ||
output=$((dpkg-checkbuilddeps ) 2>&1) | ||
result=$? | ||
if [ $result -eq 0 ]; then | ||
echo "All dependencies are installed" | ||
exit 0 | ||
fi | ||
replace="sudo apt install" | ||
missing=${output/dpkg-checkbuilddeps: error: Unmet build dependencies:/$replace} | ||
$missing | ||
;; | ||
"run") | ||
initialize | ||
./com.github.kjlaw89.archetype | ||
;; | ||
"test") | ||
initialize | ||
ninja test | ||
;; | ||
"test-run") | ||
initialize | ||
ninja test | ||
result=$? | ||
if [ $result -gt 0 ]; then | ||
echo "Project built but tests failed" | ||
exit 100 | ||
fi | ||
./com.github.kjlaw89.archetype | ||
;; | ||
"uninstall") | ||
initialize | ||
sudo ninja uninstall | ||
;; | ||
*) | ||
echo "Usage:" | ||
echo " ./app [OPTION]" | ||
echo "" | ||
echo "Options:" | ||
echo " clean Removes build directories (can require sudo)" | ||
echo " generate-i18n Generates .pot and .po files for i18n (multi-language support)" | ||
echo " install Builds and installs application to the system (requires sudo)" | ||
echo " install-deps Installs missing build dependencies" | ||
echo " run Builds and runs the application" | ||
echo " test Builds and runs testing for the application" | ||
echo " test-run Builds application, runs testing and if successful application is started" | ||
echo " uninstall Removes the application from the system (requires sudo)" | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"app-id" : "com.github.kjlaw89.archetype", | ||
"runtime" : "org.gnome.Platform", | ||
"runtime-version" : "3.28", | ||
"sdk" : "org.gnome.Sdk", | ||
"command" : "builder-test", | ||
"finish-args" : [ | ||
"--share=network", | ||
"--share=ipc", | ||
"--socket=x11", | ||
"--socket=wayland", | ||
"--filesystem=xdg-run/dconf", | ||
"--filesystem=~/.config/dconf:ro", | ||
"--talk-name=ca.desrt.dconf", | ||
"--env=DCONF_USER_CONFIG_DIR=.config/dconf" | ||
], | ||
"build-options" : { | ||
"cflags" : "-O2 -g", | ||
"cxxflags" : "-O2 -g", | ||
"env" : { | ||
} | ||
}, | ||
"cleanup" : [ | ||
"/include", | ||
"/lib/pkgconfig", | ||
"/man", | ||
"/share/doc", | ||
"/share/gtk-doc", | ||
"/share/man", | ||
"/share/pkgconfig", | ||
"/share/vala", | ||
"*.la", | ||
"*.a" | ||
], | ||
"modules" : [ | ||
{ | ||
"name" : "archetype", | ||
"buildsystem" : "meson", | ||
"config-opts" : [ | ||
"--libdir=lib" | ||
], | ||
"builddir" : true, | ||
"sources" : [ | ||
{ | ||
"type" : "git", | ||
"url" : "file:///home/kj/Documents/Projects/archetype" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- Copyright 2018 KJ Lawrence <[email protected]> --> | ||
<component type="desktop-application"> | ||
<id>com.github.kjlaw89.archetype.desktop</id> | ||
<metadata_license>CC0-1.0</metadata_license> | ||
<project_license>GPL-3.0+</project_license> | ||
<name>Archetype</name> | ||
<summary>Create new Vala apps with ease</summary> | ||
<developer_name>KJ Lawrence</developer_name> | ||
<provides> | ||
<binary>com.github.kjlaw89.archetype</binary> | ||
</provides> | ||
<screenshots> | ||
<screenshot type="default"> | ||
<image>https://raw.githubusercontent.com/kjlaw89/archetype/master/data/images/screenshot.png</image> | ||
</screenshot> | ||
</screenshots> | ||
<description> | ||
<p>A simple Vala app generator</p> | ||
</description> | ||
<url type="homepage">https://kjlaw89.github.io/archetype/</url> | ||
<url type="bugtracker">https://github.com/kjlaw89/archetype/issues</url> | ||
<url type="help">https://github.com/kjlaw89/archetype/issues</url> | ||
<update_contact>[email protected]</update_contact> | ||
<custom> | ||
<value key="x-appcenter-color-primary">#546A79</value> | ||
<value key="x-appcenter-color-primary-text">#ECF0F1</value> | ||
<value key="x-appcenter-suggested-price">1</value> | ||
</custom> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Desktop Entry] | ||
Name=Archetype | ||
Comment=Create new Vala apps with ease | ||
Icon=com.github.kjlaw89.archetype | ||
Exec=com.github.kjlaw89.archetype | ||
Terminal=false | ||
Type=Application | ||
StartupNotify=true | ||
Categories=GNOME;GTK;IDE;Utility;TextEditor;WebDevelopment; | ||
Keywords=app;template;vala; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<gresources> | ||
|
||
<gresource prefix="/com/github/kjlaw89/archetype/css"> | ||
<file alias="style.css" compressed="true">css/style.css</file> | ||
</gresource> | ||
|
||
<gresource prefix="/com/github/kjlaw89/archetype/images"> | ||
<file alias="com.github.kjlaw89.archetype.svg" compressed="true" preprocess="xml-stripblanks">images/com.github.kjlaw89.archetype.svg</file> | ||
<file alias="16-com.github.kjlaw89.archetype.svg" compressed="true" preprocess="xml-stripblanks">images/icons/16/com.github.kjlaw89.archetype.svg</file> | ||
<file alias="24-com.github.kjlaw89.archetype.svg" compressed="true" preprocess="xml-stripblanks">images/icons/24/com.github.kjlaw89.archetype.svg</file> | ||
<file alias="32-com.github.kjlaw89.archetype.svg" compressed="true" preprocess="xml-stripblanks">images/icons/32/com.github.kjlaw89.archetype.svg</file> | ||
<file alias="48-com.github.kjlaw89.archetype.svg" compressed="true" preprocess="xml-stripblanks">images/icons/48/com.github.kjlaw89.archetype.svg</file> | ||
<file alias="64-com.github.kjlaw89.archetype.svg" compressed="true" preprocess="xml-stripblanks">images/icons/64/com.github.kjlaw89.archetype.svg</file> | ||
<file alias="128-com.github.kjlaw89.archetype.svg" compressed="true" preprocess="xml-stripblanks">images/icons/128/com.github.kjlaw89.archetype.svg</file> | ||
</gresource> | ||
|
||
<gresource prefix="/com/github/kjlaw89/archetype/licenses"> | ||
<file alias="com.github.kjlaw89.archetype.agpl-3.0" compressed="true">licenses/agpl-3.0.txt</file> | ||
<file alias="com.github.kjlaw89.archetype.agpl-3.0-preamble" compressed="true">licenses/agpl-3.0-preamble.txt</file> | ||
<file alias="com.github.kjlaw89.archetype.apache-2.0" compressed="true">licenses/apache-2.0.txt</file> | ||
<file alias="com.github.kjlaw89.archetype.apache-2.0-preamble" compressed="true">licenses/apache-2.0-preamble.txt</file> | ||
<file alias="com.github.kjlaw89.archetype.gpl-3.0" compressed="true">licenses/gpl-3.0.txt</file> | ||
<file alias="com.github.kjlaw89.archetype.gpl-3.0-preamble" compressed="true">licenses/gpl-3.0-preamble.txt</file> | ||
<file alias="com.github.kjlaw89.archetype.lgpl-3.0" compressed="true">licenses/lgpl-3.0.txt</file> | ||
<file alias="com.github.kjlaw89.archetype.lgpl-3.0-preamble" compressed="true">licenses/lgpl-3.0-preamble.txt</file> | ||
<file alias="com.github.kjlaw89.archetype.mit" compressed="true">licenses/mit.txt</file> | ||
<file alias="com.github.kjlaw89.archetype.mit-preamble" compressed="true">licenses/mit-preamble.txt</file> | ||
<file alias="com.github.kjlaw89.archetype.unlicense" compressed="true">licenses/unlicense.txt</file> | ||
<file alias="com.github.kjlaw89.archetype.unlicense-preamble" compressed="true">licenses/unlicense-preamble.txt</file> | ||
<file alias="com.github.kjlaw89.archetype.custom" compressed="true">licenses/custom.txt</file> | ||
<file alias="com.github.kjlaw89.archetype.custom-preamble" compressed="true">licenses/custom-preamble.txt</file> | ||
</gresource> | ||
</gresources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<schemalist> | ||
|
||
<schema id="com.github.kjlaw89.archetype" path="/com/github/kjlaw89/archetype/"> | ||
<key name="window-x" type="i"> | ||
<default>-1</default> | ||
<summary>Most recent x position of Archetype</summary> | ||
<description>Most recent x position of Archetype</description> | ||
</key> | ||
|
||
<key name="window-y" type="i"> | ||
<default>-1</default> | ||
<summary>Most recent y position of Archetype</summary> | ||
<description>Most recent y position of Archetype</description> | ||
</key> | ||
</schema> | ||
|
||
</schemalist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright (c) 2018 KJ Lawrence | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2 of the License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public | ||
* License along with this program; if not, write to the | ||
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
* Boston, MA 02110-1301 USA | ||
*/ | ||
|
||
@define-color colorAccent #7a36b1; | ||
|
||
GraniteHeaderLabel { padding-top: 0px; padding-bottom: 0px; } | ||
GtkFrame GtkScrolledWindow, GtkFrame GtkTextView { background-color: transparent; } | ||
.small_label { font-size: 7px; } | ||
|
||
|
||
.libraries_scrolled { background-color: lightgrey; } | ||
.libraries_scrolled GtkLabel { color: #cc3b02; } | ||
|
||
.libraries_list AppWidgetsLibraryRow:not(:last-child) { | ||
border-bottom: 1px solid lightgrey; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.