-
Couldn't load subscription status.
- Fork 70
templatectl: Add/Remove items from templates.json via cli #222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Eeems
merged 46 commits into
toltec-dev:testing
from
PeterGrace:peter.grace/add-templatectl-to-testing
Jan 17, 2021
Merged
Changes from 42 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
e3bd2c9
templatectl package
PeterGrace bdf11f3
remove the rm of .cargo/config
PeterGrace 9a892c0
add package that helps test templatectl
PeterGrace 2135b3e
changes to facilitate linking
PeterGrace 139ee74
satisfy shfmt
PeterGrace c422378
shfmt must be satisfied
PeterGrace a0c6057
quote bash variables
PeterGrace 008418d
Update package/templatectl/package
PeterGrace 2626ee6
Update package/template-cartesian-graph/package
PeterGrace 4da4ed9
Update package/template-cartesian-graph/package
PeterGrace 9107fa8
Update package/template-cartesian-graph/package
PeterGrace 5018812
Update package/templatectl/package
PeterGrace e417719
Update package/template-cartesian-graph/package
PeterGrace 7fc27c4
Update package/template-cartesian-graph/package
PeterGrace 3dce785
Update package/template-cartesian-graph/package
PeterGrace d484970
Update package/template-cartesian-graph/package
PeterGrace 02ebd27
Update package/templatectl/package
PeterGrace 04f72bf
Update package/template-cartesian-graph/package
PeterGrace 24a7dfa
bump templatectl version in package list to absorb new fixes for icon…
PeterGrace b5cf2a0
Merge branch 'peter.grace/add-templatectl-to-testing' of github.com:P…
PeterGrace d502e9e
update templatectl to v0.1.2 which fixes iconcode rendering bug
PeterGrace 5cb6655
Merge branch 'testing' into peter.grace/add-templatectl-to-testing
Eeems de834a4
Merge branch 'testing' into peter.grace/add-templatectl-to-testing
Eeems 6766231
Switch to bind mount
Eeems fb6bd5d
Merge branch 'testing' into peter.grace/add-templatectl-to-testing
Eeems 5dea29c
Remove extra space
Eeems ede8029
fix path for bindmount
PeterGrace 2bdb5bd
revert changing the bind mount path, we don't want the stuff in /opt/…
PeterGrace 9419dad
fix path to match other path assumptions
PeterGrace e8a5045
also fix uninstall message
PeterGrace fa8c31d
update the path copying
PeterGrace 32ffb6a
fix path variable
PeterGrace 7c7558d
missed a path reference
PeterGrace 1b8311a
bump package number to help stop confusion
PeterGrace f0bdce4
umount if you can, ignore if you cant
PeterGrace 4ea0b2f
add a message if unmount fails.
PeterGrace a62e15f
Fix bug with package-build
Eeems 59526c6
Add system upgrade warning
Eeems fef2c91
Merge branch 'testing' into peter.grace/add-templatectl-to-testing
Eeems 1b4b22b
Merge branch 'testing' into peter.grace/add-templatectl-to-testing
Eeems 3530414
Update package/templatectl/package
PeterGrace dce62a1
Update package
Eeems a424947
Merge branch 'testing' into peter.grace/add-templatectl-to-testing
matteodelabre 2252bf8
update templatectl to v0.1.3 which includes template file change notice
PeterGrace 9681995
Update package
Eeems 2c1a2fe
Update package
Eeems File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -5,7 +5,7 @@ | |
| pkgnames=(draft) | ||
| pkgdesc="Launcher which wraps around the standard interface" | ||
| url=https://github.com/dixonary/draft-reMarkable | ||
| pkgver=0.2.0-17 | ||
| pkgver=0.2.0-18 | ||
| timestamp=2020-07-20T10:23Z | ||
| section="launchers" | ||
| maintainer="Mattéo Delabre <[email protected]>" | ||
|
|
||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ | |
| # SPDX-License-Identifier: MIT | ||
|
|
||
| pkgnames=(erode fret oxide rot tarnish decay) | ||
| pkgver=2.1~beta-2 | ||
| pkgver=2.1~beta-3 | ||
| timestamp=2021-01-07T03:28Z | ||
| maintainer="Eeems <[email protected]>" | ||
| license=MIT | ||
|
|
||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -5,7 +5,7 @@ | |
| pkgnames=(reboot-guard) | ||
| pkgdesc="Block systemd-initiated poweroff/reboot/halt until configurable condition checks pass" | ||
| url=https://github.com/stephanritscher/reboot-guard | ||
| pkgver=1.0.1-5 | ||
| pkgver=1.0.1-6 | ||
| timestamp=2020-05-04T06:16Z | ||
| section="devel" | ||
| maintainer="Eeems <[email protected]>" | ||
|
|
||
This file contains hidden or 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
This file contains hidden or 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 @@ | ||
| #!/usr/bin/env bash | ||
| # Copyright (c) 2021 The Toltec Contributors | ||
| # SPDX-License-Identifier: MIT | ||
|
|
||
| pkgnames=(template-cartesian-graph) | ||
| pkgdesc="Cartesian graph template" | ||
| url=https://github.com/PeterGrace/template-cartesian-graph | ||
| pkgver=1.0.0-4 | ||
| timestamp=2021-01-14T17:46Z | ||
| section="templates" | ||
| maintainer="Peter Grace <[email protected]>" | ||
| license=MIT | ||
| depends=(templatectl) | ||
|
|
||
| source=("https://github.com/PeterGrace/template-cartesian-graph/archive/v${pkgver%-*}.zip") | ||
| sha256sums=(d3215546c6fd709bb5988b7042ce5fb990d9a030d783ed7505fcc2dbedbc0e0f) | ||
|
|
||
| package() { | ||
| install -D -m 755 -t "$pkgdir"/opt/share/remarkable/templates \ | ||
| "$srcdir"/template-cartesian-graph.png | ||
| install -D -m 755 -t "$pkgdir"/opt/share/remarkable/templates \ | ||
| "$srcdir"/template-cartesian-graph.svg | ||
| } | ||
|
|
||
| configure() { | ||
| templatectl add --name "Cartesian Graph" --filename "template-cartesian-graph" \ | ||
| --category "Custom" --category "Math" | ||
| } | ||
|
|
||
| preremove() { | ||
| templatectl remove --name "Cartesian Graph" | ||
| } | ||
|
|
||
| preupgrade() { | ||
| templatectl remove --name "Cartesian Graph" | ||
| } |
This file contains hidden or 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,61 @@ | ||
| #!/usr/bin/env bash | ||
| # Copyright (c) 2021 The Toltec Contributors | ||
| # SPDX-License-Identifier: MIT | ||
|
|
||
| pkgnames=(templatectl) | ||
| pkgdesc="Tool to add/remove templates for xochitl" | ||
| url=https://github.com/PeterGrace/templatectl | ||
| pkgver=0.1.2-3 | ||
| timestamp=2021-01-15T01:23Z | ||
| section="templates" | ||
| maintainer="Peter Grace <[email protected]>" | ||
| license=MIT | ||
|
|
||
| image=rust:v1.2.2 | ||
| source=( | ||
| "https://github.com/PeterGrace/templatectl/archive/v${pkgver%-*}.zip" | ||
| usr-share-remarkable-templates.mount | ||
| ) | ||
| sha256sums=( | ||
| 305e3dbf29aea7f762fba22ceebfa004a5f666ae96fdb8776b2acfdb39539469 | ||
| SKIP | ||
| ) | ||
|
|
||
| build() { | ||
| cargo build --release | ||
| } | ||
|
|
||
| package() { | ||
| install -D -m 755 -t "$pkgdir"/opt/bin \ | ||
| "$srcdir"/target/armv7-unknown-linux-gnueabihf/release/templatectl | ||
| install -D -t "$pkgdir"/lib/systemd/system "$srcdir"/usr-share-remarkable-templates.mount | ||
| } | ||
|
|
||
| preinstall() { | ||
| local target_path=share/remarkable/templates | ||
| if [ ! -d /home/root/.entware/"$target_path" ]; then | ||
| mkdir -p /home/root/.entware/"$target_path" | ||
| cp -r /usr/"$target_path"/* /home/root/.entware/"$target_path" | ||
| fi | ||
| } | ||
|
|
||
| postupgrade() { | ||
| systemctl stop usr-share-remarkable-templates.mount | ||
| } | ||
|
|
||
| configure() { | ||
| systemctl daemon-reload | ||
| systemctl enable --now usr-share-remarkable-templates.mount | ||
| echo "If you perform a system upgrade that adds new templates" | ||
| echo "Manual intervention may be required to handle adding the new templates" | ||
| } | ||
|
|
||
| preremove() { | ||
| systemctl disable --now usr-share-remarkable-templates.mount | ||
matteodelabre marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
| postremove() { | ||
| systemctl daemon-reload | ||
| echo "To fully remove templatectl you'll need to run the following command:" | ||
| echo " rm -rf /home/root/.entware/share/remarkable/templates" | ||
| } | ||
This file contains hidden or 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,14 @@ | ||
| [Unit] | ||
| Description=Bind mount /opt/share/remarkable/templates over /usr/share/remarkable/templates | ||
| DefaultDependencies=no | ||
| Conflicts=umount.target | ||
| Before=local-fs.target umount.target | ||
matteodelabre marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| [Mount] | ||
| What=/home/root/.entware/share/remarkable/templates | ||
| Where=/usr/share/remarkable/templates | ||
| Type=none | ||
| Options=bind | ||
|
|
||
| [Install] | ||
| WantedBy=local-fs.target | ||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.