Skip to content

Commit

Permalink
Odin (#44)
Browse files Browse the repository at this point in the history
* Fix compilation error

* Use libhandy

* Add support for dark mode

* Use Granite style classes

* Satisfy linter

* Delete Travis CI

* Add Flatpak manifest

* Delete debian packaging

* Update Flatpak manifest

* Update GitHub CI

* Update README.md

* Use RDNN

* Use daily as runtime-version

* Update main.yml

* Update runtime version

* Add stripe key

* Update stripe key

* Update AppCenter colors

* Fix icon

* Improve tooling

* Update .gitignore

* MainWindow: Remove WindowHandle

* GitHub CI: Add build for ARM

* Add gettext domain

* Flatpak: Update runtime to 6.1

* Rebrand to own domain

* Rename files

* DevicePage: Fix compiler warnings for debug mode

* Fix icon path

* Update screenshots
  • Loading branch information
meisenzahl committed Dec 23, 2021
1 parent 0ed206a commit b3cce7a
Show file tree
Hide file tree
Showing 89 changed files with 754 additions and 888 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: CI

on:
pull_request:
types:
- opened
- reopened
- synchronize

jobs:
flatpak:
name: Flatpak
runs-on: ubuntu-latest

strategy:
matrix:
arch: [x86_64, aarch64]
# Don't fail the whole workflow if one architecture fails
fail-fast: false

container:
image: ghcr.io/elementary/flatpak-platform/runtime:6-${{ matrix.arch }}
options: --privileged

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up QEMU for aarch64 emulation
if: ${{ matrix.arch != 'x86_64' }}
uses: docker/setup-qemu-action@v1
with:
platforms: arm64

- name: Build
uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v4
with:
bundle: com.manexim.home.flatpak
manifest-path: com.manexim.home.yml
run-tests: true
repository-name: appcenter
repository-url: https://flatpak.elementary.io/repo.flatpakrepo
cache-key: "flatpak-builder-${{ github.sha }}"
arch: ${{ matrix.arch }}

lint:
name: Lint
runs-on: ubuntu-latest

container:
image: valalang/lint

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Lint
run: io.elementary.vala-lint -d .
16 changes: 0 additions & 16 deletions .github/workflows/main.yml

This file was deleted.

7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
*~
build/
src/Application
build
build-dir
.flatpak-builder
repo/
*.flatpak
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Build & Run",
"type": "shell",
"command": "./app build && ./app install && ./app run",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<div align="center">
<span align="center"> <img width="80" height="80" class="center" src="data/icons/128/com.github.manexim.home.svg" alt="Icon"></span>
<span align="center"> <img width="80" height="80" class="center" src="data/icons/128/com.manexim.home.svg" alt="Icon"></span>
<h1 align="center">Home</h1>
<h3 align="center">Control your smart home gadgets</h3>
<p align="center">Designed for <a href="https://elementary.io">elementary OS</a></p>
</div>

<p align="center">
<a href="https://appcenter.elementary.io/com.github.manexim.home" target="_blank">
<a href="https://appcenter.elementary.io/com.manexim.home" target="_blank">
<img src="https://appcenter.elementary.io/badge.svg">
</a>
</p>

<p align="center">
<a href="https://travis-ci.org/manexim/home">
<img src="https://img.shields.io/travis/manexim/home.svg">
<a href="https://github.com/manexim/home/actions/workflows/main.yml">
<img src="https://github.com/manexim/home/workflows/CI/badge.svg">
</a>
<a href="https://github.com/manexim/home/releases/">
<img src="https://img.shields.io/github/release/manexim/home.svg">
Expand Down Expand Up @@ -73,6 +73,7 @@ These dependencies must be present before building:
- `meson (>=0.40)`
- `valac (>=0.40)`
- `libgtk-3-dev`
- `libhandy-1-dev` >=1.0.0
- `libjson-glib-dev`
- `libgee-0.8-dev`
- `libgranite-dev`
Expand All @@ -88,7 +89,7 @@ meson build --prefix=/usr
cd build
ninja
sudo ninja install
com.github.manexim.home
com.manexim.home
```

### Deconstruct
Expand Down
19 changes: 19 additions & 0 deletions app
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# fail on first error
set -e

APP=com.manexim.home

case "$1" in
build)
flatpak-builder --repo=repo build ${APP}.yml --force-clean
flatpak build-bundle repo ${APP}.flatpak --runtime-repo=https://flatpak.elementary.io/repo.flatpakrepo ${APP} master
;;
install)
flatpak install --user -y ${APP}.flatpak
;;
run)
flatpak run ${APP}
;;
esac
16 changes: 16 additions & 0 deletions com.manexim.home.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
app-id: com.manexim.home
runtime: io.elementary.Platform
runtime-version: '6.1'
sdk: io.elementary.Sdk
command: com.manexim.home
finish-args:
- '--share=ipc'
- '--share=network'
- '--socket=fallback-x11'
- '--socket=wayland'
modules:
- name: home
buildsystem: meson
sources:
- type: dir
path: .
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2019 Manexim -->
<component type="desktop">
<id>com.github.manexim.home</id>
<id>com.manexim.home</id>
<metadata_license>CC0</metadata_license>
<project_license>GPL-3.0+</project_license>
<name>Home</name>
Expand All @@ -18,7 +18,7 @@
<category>Network</category>
</categories>
<provides>
<binary>com.github.manexim.home</binary>
<binary>com.manexim.home</binary>
</provides>
​<releases>
<release date="2019-11-03" version="0.5.0">
Expand Down Expand Up @@ -208,10 +208,11 @@
<url type="bugtracker">https://github.com/manexim/home/issues</url>
<custom>
<!-- elementary AppCenter specific values -->
<value key="x-appcenter-color-primary">#fafafa</value>
<value key="x-appcenter-color-primary-text">#333</value>
<value key="x-appcenter-color-primary">#802392</value>
<value key="x-appcenter-color-primary-text">#fafafa</value>
<!-- Suggested price in USD; just a suggestion, NOT a minimum. -->
<value key="x-appcenter-suggested-price">5</value>
<value key="x-appcenter-stripe">pk_live_FiCVZObTHO7IaLtSXRETuJiJ00aW6Su9kN</value>
</custom>
<content_rating type="oars-1.1">
<content_attribute id="violence-cartoon">none</content_attribute>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ Type=Application
Name=Home
GenericName=Home
Comment=Control your smart home gadgets
Exec=com.github.manexim.home
Icon=com.github.manexim.home
Exec=com.manexim.home
Icon=com.manexim.home
Categories=GNOME;GTK;Network;
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
<schema id="com.github.manexim.home" path="/com/github/manexim/home/" gettext-domain="com.github.manexim.home">
<schema id="com.manexim.home" path="/com/github/manexim/home/" gettext-domain="com.manexim.home">
<key name="uuid" type="s">
<default>""</default>
<summary>The universally unique identifier</summary>
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b3cce7a

Please sign in to comment.