Rename assets folder to screenshots, and improve the build system.
This commit is contained in:
parent
d131c279b9
commit
1888539a97
@ -8,9 +8,9 @@
|
|||||||
|
|
||||||
* TBA
|
* TBA
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
## Quick start
|
## Quick start
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ There are also some minor tasks tagged with `TODO:` and `FIXME:` in the source c
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ tree -d
|
$ tree -d
|
||||||
├── assets # png's used in the README.md
|
├── screenshots # png's used in the README.md
|
||||||
├── hammond-data # Storate related stuff, SQLite, XDG setup, RSS Parser.
|
├── hammond-data # Storate related stuff, SQLite, XDG setup, RSS Parser.
|
||||||
│ ├── migrations # Diesel SQL migrations.
|
│ ├── migrations # Diesel SQL migrations.
|
||||||
│ │ └── ...
|
│ │ └── ...
|
||||||
|
|||||||
5
configure
vendored
5
configure
vendored
@ -136,9 +136,12 @@ fi
|
|||||||
cat > Makefile <<END
|
cat > Makefile <<END
|
||||||
# Generated by configure; do not edit
|
# Generated by configure; do not edit
|
||||||
|
|
||||||
all:
|
all: rebuild
|
||||||
${NINJA} ${NINJA_OPT}
|
${NINJA} ${NINJA_OPT}
|
||||||
|
|
||||||
|
rebuild:
|
||||||
|
rm -f ${builddir}/hammond
|
||||||
|
|
||||||
install:
|
install:
|
||||||
DESTDIR="\$(DESTDIR)" ${NINJA} ${NINJA_OPT} install
|
DESTDIR="\$(DESTDIR)" ${NINJA} ${NINJA_OPT} install
|
||||||
|
|
||||||
|
|||||||
4
hammond-gtk/resources/meson.build
Normal file
4
hammond-gtk/resources/meson.build
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# subdir('icons')
|
||||||
|
|
||||||
|
install_data('org.gnome.Hammond.desktop', install_dir : datadir + '/applications')
|
||||||
|
install_data('org.gnome.Hammond.appdata.xml', install_dir : datadir + '/appdata')
|
||||||
@ -8,12 +8,12 @@
|
|||||||
<summary>GNOME Podcast Client written in Rust</summary>
|
<summary>GNOME Podcast Client written in Rust</summary>
|
||||||
<url type="homepage">https://gitlab.gnome.org/alatiera/Hammond</url>
|
<url type="homepage">https://gitlab.gnome.org/alatiera/Hammond</url>
|
||||||
<description>
|
<description>
|
||||||
Hammond is a Fast, Safe and Reliable Gtk+ Podcast client written in Rust
|
Hammond is a Gtk+ Podcast client for the GNOME Desktop written in Rust
|
||||||
</description>
|
</description>
|
||||||
<screenshots>
|
<screenshots>
|
||||||
<screenshot>
|
<screenshot>
|
||||||
<image type="source">https://gitlab.gnome.org/alatiera/Hammond/raw/master/assets/podcasts_view.png</image>
|
<image type="source">https://gitlab.gnome.org/alatiera/Hammond/raw/master/screenshots/podcasts_view.png</image>
|
||||||
<image type="source">https://gitlab.gnome.org/alatiera/Hammond/raw/master/assets/podcast_widget.png</image>
|
<image type="source">https://gitlab.gnome.org/alatiera/Hammond/raw/master/screenshots/podcast_widget.png</image>
|
||||||
</screenshot>
|
</screenshot>
|
||||||
</screenshots>
|
</screenshots>
|
||||||
<releases>
|
<releases>
|
||||||
|
|||||||
@ -16,8 +16,9 @@ hammond_version_micro = version_array[2].to_int()
|
|||||||
hammond_prefix = get_option('prefix')
|
hammond_prefix = get_option('prefix')
|
||||||
hammond_bindir = join_paths(hammond_prefix, get_option('bindir'))
|
hammond_bindir = join_paths(hammond_prefix, get_option('bindir'))
|
||||||
|
|
||||||
install_data('hammond-gtk/resources/org.gnome.Hammond.desktop', install_dir : get_option('datadir') + '/applications')
|
datadir = get_option('datadir')
|
||||||
install_data('hammond-gtk/resources/org.gnome.Hammond.appdata.xml', install_dir : get_option('datadir') + '/appdata')
|
icondir = join_paths(datadir, 'icons')
|
||||||
|
subdir('hammond-gtk/resources')
|
||||||
|
|
||||||
cargo = find_program('cargo', required: false)
|
cargo = find_program('cargo', required: false)
|
||||||
gresource = find_program('glib-compile-resources', required: false)
|
gresource = find_program('glib-compile-resources', required: false)
|
||||||
@ -34,5 +35,4 @@ cargo_release = custom_target('cargo-build',
|
|||||||
|
|
||||||
run_target('release', command: ['scripts/release.sh',
|
run_target('release', command: ['scripts/release.sh',
|
||||||
meson.project_name() + '-' + hammond_version
|
meson.project_name() + '-' + hammond_version
|
||||||
],
|
])
|
||||||
depends: [cargo_release])
|
|
||||||
|
Before Width: | Height: | Size: 111 KiB After Width: | Height: | Size: 111 KiB |
|
Before Width: | Height: | Size: 119 KiB After Width: | Height: | Size: 119 KiB |
|
Before Width: | Height: | Size: 574 KiB After Width: | Height: | Size: 574 KiB |
@ -1,3 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
export CARGO_HOME=$1/target/cargo-home
|
||||||
|
|
||||||
cargo build --release -p hammond-gtk && cp $1/target/release/hammond-gtk $2
|
cargo build --release -p hammond-gtk && cp $1/target/release/hammond-gtk $2
|
||||||
@ -18,22 +18,14 @@ cp meson.build $DIST
|
|||||||
cp Hammond.doap $DIST
|
cp Hammond.doap $DIST
|
||||||
cp LICENSE $DIST
|
cp LICENSE $DIST
|
||||||
cp README.md $DIST
|
cp README.md $DIST
|
||||||
cp -rf assets $DIST
|
cp -rf screenshots $DIST
|
||||||
cp -rf scripts $DIST
|
cp -rf scripts $DIST
|
||||||
|
|
||||||
# cargo vendor
|
# cargo vendor
|
||||||
cargo vendor
|
|
||||||
mkdir $DIST/.cargo
|
mkdir $DIST/.cargo
|
||||||
cat <<EOF > $DIST/.cargo/config
|
cargo vendor > $DIST/.cargo/config
|
||||||
[source.crates-io]
|
|
||||||
replace-with = "vendored-sources"
|
|
||||||
|
|
||||||
[source.vendored-sources]
|
|
||||||
directory = "vendor"
|
|
||||||
EOF
|
|
||||||
cp -rf vendor $DIST/
|
cp -rf vendor $DIST/
|
||||||
|
|
||||||
# packaging
|
# packaging
|
||||||
cd $DEST/dist
|
cd $DEST/dist
|
||||||
tar -cJvf $VERSION.tar.xz $VERSION
|
tar -cJvf $VERSION.tar.xz $VERSION
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user