-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
1 parent
4dea689
commit 59f1e0a
Showing
33 changed files
with
2,228 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,3 @@ | ||
# weather | ||
|
||
A description of this project. |
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,42 @@ | ||
{ | ||
"app-id" : "com.github.amit9838", | ||
"runtime" : "org.gnome.Platform", | ||
"runtime-version" : "44", | ||
"sdk" : "org.gnome.Sdk", | ||
"command" : "weather", | ||
"finish-args" : [ | ||
"--share=network", | ||
"--share=ipc", | ||
"--socket=fallback-x11", | ||
"--device=dri", | ||
"--socket=wayland" | ||
], | ||
"cleanup" : [ | ||
"/include", | ||
"/lib/pkgconfig", | ||
"/man", | ||
"/share/doc", | ||
"/share/gtk-doc", | ||
"/share/man", | ||
"/share/pkgconfig", | ||
"*.la", | ||
"*.a" | ||
], | ||
"modules" : [ | ||
"data/dependencies/python3-requests.json", | ||
{ | ||
"name" : "weather", | ||
"builddir" : true, | ||
"buildsystem" : "meson", | ||
"sources" : [ | ||
{ | ||
"type" : "git", | ||
"url" : "file:///home/amit/Projects" | ||
} | ||
] | ||
} | ||
], | ||
"build-options" : { | ||
"env" : { } | ||
} | ||
} |
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,42 @@ | ||
{ | ||
"app-id" : "com.github.amit9838", | ||
"runtime" : "org.gnome.Platform", | ||
"runtime-version" : "43", | ||
"sdk" : "org.gnome.Sdk", | ||
"command" : "weather", | ||
"finish-args" : [ | ||
"--share=network", | ||
"--share=ipc", | ||
"--socket=fallback-x11", | ||
"--device=dri", | ||
"--socket=wayland" | ||
], | ||
"cleanup" : [ | ||
"/include", | ||
"/lib/pkgconfig", | ||
"/man", | ||
"/share/doc", | ||
"/share/gtk-doc", | ||
"/share/man", | ||
"/share/pkgconfig", | ||
"*.la", | ||
"*.a" | ||
], | ||
"modules" : [ | ||
"data/dependencies/python3-requests.json", | ||
{ | ||
"name" : "weather", | ||
"builddir" : true, | ||
"buildsystem" : "meson", | ||
"sources" : [ | ||
{ | ||
"type" : "git", | ||
"url" : "file:///home/amit/Projects" | ||
} | ||
] | ||
} | ||
], | ||
"build-options" : { | ||
"env" : { } | ||
} | ||
} |
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,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<component type="desktop"> | ||
<id>com.github.amit9838.desktop</id> | ||
<metadata_license>CC0-1.0</metadata_license> | ||
<project_license>GPL-3.0-or-later</project_license> | ||
<description> | ||
<p>No description</p> | ||
</description> | ||
</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,8 @@ | ||
[Desktop Entry] | ||
Name=weather | ||
Exec=weather | ||
Icon=com.github.amit9838 | ||
Terminal=false | ||
Type=Application | ||
Categories=GTK; | ||
StartupNotify=true |
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"?> | ||
<schemalist gettext-domain="weather"> | ||
<schema id="com.github.amit9838" path="/com/github/amit9838/"> | ||
<key name="api-key" type="s"> | ||
<default>"b93e61109a102e0424bb8b1b073c3b2c"</default> | ||
<summary>Default api</summary> | ||
<description>Default api</description> | ||
</key> | ||
<key name="added-cities" type="as"> | ||
<default>['Delhi,IN,28.6517178,77.2219388']</default> | ||
<summary>List of cities and their co-ordinates.</summary> | ||
<description>Stores locations added by user in json stringified string format in string</description> | ||
</key> | ||
<key name="selected-city" type="i"> | ||
<default>0</default> | ||
<summary>Selected city</summary> | ||
<description>Selected city name</description> | ||
</key> | ||
<key name="use-gradient-bg" type="b"> | ||
<default>true</default> | ||
<summary>Use Gradient Background</summary> | ||
<description>Apply gradient background on main window corresponding to weather condition</description> | ||
</key> | ||
<key name="updated-at" type="s"> | ||
<default>"2023-06-10 01:01:18.716371"</default> | ||
<summary>Last Updated </summary> | ||
<description>last updated time</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,34 @@ | ||
{ | ||
"name": "python3-requests", | ||
"buildsystem": "simple", | ||
"build-commands": [ | ||
"pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"requests\" --no-build-isolation" | ||
], | ||
"sources": [ | ||
{ | ||
"type": "file", | ||
"url": "https://files.pythonhosted.org/packages/9d/19/59961b522e6757f0c9097e4493fa906031b95b3ebe9360b2c3083561a6b4/certifi-2023.5.7-py3-none-any.whl", | ||
"sha256": "c6c2e98f5c7869efca1f8916fed228dd91539f9f1b444c314c06eef02980c716" | ||
}, | ||
{ | ||
"type": "file", | ||
"url": "https://files.pythonhosted.org/packages/ff/d7/8d757f8bd45be079d76309248845a04f09619a7b17d6dfc8c9ff6433cac2/charset-normalizer-3.1.0.tar.gz", | ||
"sha256": "34e0a2f9c370eb95597aae63bf85eb5e96826d81e3dcf88b8886012906f509b5" | ||
}, | ||
{ | ||
"type": "file", | ||
"url": "https://files.pythonhosted.org/packages/fc/34/3030de6f1370931b9dbb4dad48f6ab1015ab1d32447850b9fc94e60097be/idna-3.4-py3-none-any.whl", | ||
"sha256": "90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2" | ||
}, | ||
{ | ||
"type": "file", | ||
"url": "https://files.pythonhosted.org/packages/96/80/034ffeca15c0f4e01b7b9c6ad0fb704b44e190cde4e757edbd60be404c41/requests-2.30.0-py3-none-any.whl", | ||
"sha256": "10e94cc4f3121ee6da529d358cdaeaff2f1c409cd377dbc72b825852f2f7e294" | ||
}, | ||
{ | ||
"type": "file", | ||
"url": "https://files.pythonhosted.org/packages/4b/1d/f8383ef593114755429c307449e7717b87044b3bcd5f7860b89b1f759e34/urllib3-2.0.2-py3-none-any.whl", | ||
"sha256": "d055c2f9d38dc53c808f6fdc8eab7360b6fdbbde02340ed25cfbcd817c62469e" | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 68 additions & 0 deletions
68
data/icons/hicolor/symbolic/apps/com.github.amit9838-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,13 @@ | ||
application_id = 'com.github.amit9838' | ||
|
||
scalable_dir = join_paths('hicolor', 'scalable', 'apps') | ||
install_data( | ||
join_paths(scalable_dir, ('@0@.png').format(application_id)), | ||
install_dir: join_paths(get_option('datadir'), 'icons', scalable_dir) | ||
) | ||
|
||
symbolic_dir = join_paths('hicolor', 'symbolic', 'apps') | ||
install_data( | ||
join_paths(symbolic_dir, ('@0@-symbolic.png').format(application_id)), | ||
install_dir: join_paths(get_option('datadir'), 'icons', symbolic_dir) | ||
) |
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,39 @@ | ||
desktop_file = i18n.merge_file( | ||
input: 'com.github.amit9838.desktop.in', | ||
output: 'com.github.amit9838.desktop', | ||
type: 'desktop', | ||
po_dir: '../po', | ||
install: true, | ||
install_dir: join_paths(get_option('datadir'), 'applications') | ||
) | ||
|
||
desktop_utils = find_program('desktop-file-validate', required: false) | ||
if desktop_utils.found() | ||
test('Validate desktop file', desktop_utils, args: [desktop_file]) | ||
endif | ||
|
||
appstream_file = i18n.merge_file( | ||
input: 'com.github.amit9838.appdata.xml.in', | ||
output: 'com.github.amit9838.appdata.xml', | ||
po_dir: '../po', | ||
install: true, | ||
install_dir: join_paths(get_option('datadir'), 'appdata') | ||
) | ||
|
||
appstream_util = find_program('appstream-util', required: false) | ||
if appstream_util.found() | ||
test('Validate appstream file', appstream_util, args: ['validate', appstream_file]) | ||
endif | ||
|
||
install_data('com.github.amit9838.gschema.xml', | ||
install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas') | ||
) | ||
|
||
compile_schemas = find_program('glib-compile-schemas', required: false) | ||
if compile_schemas.found() | ||
test('Validate schema file', | ||
compile_schemas, | ||
args: ['--strict', '--dry-run', meson.current_source_dir()]) | ||
endif | ||
|
||
subdir('icons') |
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,25 @@ | ||
project('weather', | ||
version: '0.1.0', | ||
meson_version: '>= 0.62.0', | ||
default_options: [ 'warning_level=2', 'werror=false', ], | ||
) | ||
|
||
i18n = import('i18n') | ||
gnome = import('gnome') | ||
|
||
|
||
|
||
subdir('data') | ||
subdir('src') | ||
subdir('po') | ||
|
||
|
||
|
||
|
||
install_subdir('data/weather_icons', install_dir: '/app/share/icons/hicolor/scalable') | ||
|
||
gnome.post_install( | ||
glib_compile_schemas: true, | ||
gtk_update_icon_cache: true, | ||
update_desktop_database: true, | ||
) |
Empty file.
Oops, something went wrong.