diff --git a/info.yml b/info.yml index ec9e9ad..b229c86 100644 --- a/info.yml +++ b/info.yml @@ -1,6 +1,6 @@ name: fresh-editor description: Easy, powerful and fast text editor for your terminal -version: 0.4.10 +version: 0.5.1 revision: 1 url: https://sinelaw.github.io/fresh/ license: GPL2-only @@ -18,4 +18,4 @@ downloads: - url: https://github.com/sinelaw/fresh/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz extract_to: ${BPM_SOURCE} extract_strip_components: 1 - checksum: a315a38f0598554998e7b256d4ef997d158592532d43ca52328c8dc8e177d65f + checksum: 3472273fcf77b019922b32ddffad061cc068bfb260344865c239c8eb056d92bf diff --git a/recipe.sh b/recipe.sh index 49acf24..961cbe2 100644 --- a/recipe.sh +++ b/recipe.sh @@ -30,7 +30,18 @@ package() { cp -r crates/fresh-editor/plugins "$BPM_OUTPUT"/usr/share/fresh-editor/ # Install keymaps - cp -r crates/fresh-editor/keymaps "$BPM_OUTPUT"/usr/share/fresh-editor/ + cp -r crates/fresh-editor-core/keymaps "$BPM_OUTPUT"/usr/share/fresh-editor/ + + # Install desktop file + install -Dm644 crates/fresh-editor/resources/fresh.desktop "$BPM_OUTPUT"/usr/share/applications/fresh.desktop + + # Install icons + for size in 16 22 24 32 48 64 128 256 512; do + install -Dm644 "$BPM_SOURCE"/docs/icons/linux/hicolor/${size}x${size}/apps/fresh.png "$BPM_OUTPUT"/usr/share/icons/hicolor/${size}x${size}/apps/fresh.png + done + + # Install install receipt + envsubst < "$BPM_WORKDIR"/install-receipt.toml | install -Dm644 /dev/stdin "$BPM_OUTPUT"/usr/share/fresh-editor/install-receipt.toml # Install package license install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/fresh-editor/LICENSE diff --git a/source-files/install-receipt.toml b/source-files/install-receipt.toml new file mode 100644 index 0000000..978adcc --- /dev/null +++ b/source-files/install-receipt.toml @@ -0,0 +1,10 @@ +schema = 1 +channel = "bpm" +version = "$BPM_PKG_VERSION" +package_name = "fresh-editor" +managed = true +self_update = false + +# Should do nothing at the moment +[hints] +bpm_pkg = "fresh-editor"