Skip to content

Commit

Permalink
CI pipeline generates a ".pbi" installer
Browse files Browse the repository at this point in the history
Refs: #84
  • Loading branch information
orontee committed Jan 7, 2024
1 parent 01e6b23 commit cb2ee42
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 14 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,13 @@ jobs:
--buildtype=release \
--strip
DESTDIR=artifact ninja -C builddir install
sha256sum builddir/artifact/taranis.app > builddir/taranis.app.sha256
pushd builddir/artifact
zip -e --password ">nD4Ar0CNc(#Gl/87A8q" taranis.pbi _scriptInstall sinstall/taranis.app sinstall/icons/*
sha256sum sinstall/taranis.app taranis.pbi > taranis.sha256
- name: Upload archive
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: builddir/artifact
if-no-files-found: error

- name: Upload application hash
uses: actions/upload-artifact@v3
with:
path: builddir/taranis.app.sha256
if-no-files-found: error
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### Added

- CI pipeline generates a ".pbi" installer
[#84](https://github.com/orontee/taranis/issues/84)

### Changed

### Removed
Expand Down
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,14 @@ their APIs is quite clear:
1. Download the `taranis.zip` archive from the [latest
release](https://github.com/orontee/taranis/releases/latest).

2. Extract the file `taranis.app` from the archive and copy that file
to the `applications` directory of the e-book reader using a USB
cable.
2. Extract the file `taranis.pbi` from the archive and copy that file
to the e-book reader.

3. The downloaded file will appear as a book in the library. Open that
book to start the installation process.

4. After the installation, the "book" can be suppressed from the
library and the device.

Optionally, a custom icon can be associated to the application;
Instructions are given in [Desktop
Expand All @@ -74,8 +79,8 @@ for instructions on how to register and generate API keys).

Another parameter allows to enable/disable generation of a shutdown
logo. Instructions are given in [Desktop
integration](./docs/desktop_integration.md#shutdown-logo) on how to setup the device
to effectively display this logo on power off.
integration](./docs/desktop_integration.md#shutdown-logo) on how to
setup the device to effectively display this logo on power off.

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion icons/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ icons = files(
'icon_warning.bmp'
)

install_data(sources: ['icon_taranis.bmp', 'icon_taranis_f.bmp'], install_dir: '/icons')
install_data(sources: ['icon_taranis.bmp', 'icon_taranis_f.bmp'], install_dir: '/sinstall/icons')
4 changes: 3 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ subdir('po')

subdir('src')

subdir('packaging')

executable(
'taranis.app',
sources,
dependencies: taranis_deps,
install: true,
install_dir: '/',
install_dir: '/sinstall',
)
4 changes: 4 additions & 0 deletions packaging/_scriptInstall.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
packageName=taranis
packageVersion=@package_version@
destDir=/mnt/ext1/applications/
destAction=install
6 changes: 6 additions & 0 deletions packaging/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
configure_file(
input: '_scriptInstall.in',
output: '_scriptInstall',
configuration: {'package_version': meson.project_version()},
install_dir: '/',
)

0 comments on commit cb2ee42

Please sign in to comment.