Browse Source

include demo project template

master
Alexandros Theodotou 3 months ago
parent
commit
4d31d274c1
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 15
      flatpak/org.zrythm.Zrythm.json
  2. 5
      gnu-linux/make-zrythm.sh.in
  3. 1
      gnu-linux/meson.build
  4. 5
      osx-brew/make_pkg.sh.in
  5. 2
      osx-brew/meson.build
  6. 11
      sources/meson.build
  7. 7
      windows-msys/make_dist_dir.sh.in
  8. 5
      windows-msys/meson.build

15
flatpak/org.zrythm.Zrythm.json

@ -698,6 +698,21 @@ @@ -698,6 +698,21 @@
}
}
]
},
{
"name": "demo-projects",
"buildsystem": "simple",
"build-commands": [
"mkdir -p ${FLATPAK_DEST}/share/zrythm/templates/demo_zsong01",
"cp -r ./* ${FLATPAK_DEST}/share/zrythm/templates/demo_zsong01/"
],
"sources": [
{
"type": "archive",
"url": "https://www.zrythm.org/demo-projects/demo_zsong01.zip",
"sha256": "bca4afaf63c294cfb2a91a965e1f51e90bea29c3c09b2b3bb164b4330ac29159"
}
]
}
]
}

5
gnu-linux/make-zrythm.sh.in

@ -25,6 +25,7 @@ zrythm_src_tarball=$3 @@ -25,6 +25,7 @@ zrythm_src_tarball=$3
prefix="$4"
meson_bin="$5"
zplugins_tarball="$6"
demo_project_zip="$7"
zip_filename=`basename $out_file`
zip_inner_dir_name="${zip_filename%.*}"
@ -162,6 +163,10 @@ rsync -zrahvWt --remove-source-files "$deps_prefix/share/locale/" "$destdir_w_pr @@ -162,6 +163,10 @@ rsync -zrahvWt --remove-source-files "$deps_prefix/share/locale/" "$destdir_w_pr
cp "$deps_prefix/share/glib-2.0/schemas/"* "$destdir_w_prefix/share/glib-2.0/schemas/"
glib-compile-schemas "$destdir_w_prefix/share/glib-2.0/schemas"
# copy demo project(s)
mkdir -p "$destdir_w_prefix/share/zrythm/templates"
unzip "$demo_project_zip" -d "$destdir_w_prefix/share/zrythm/templates"
# cleanup
pushd "$destdir_w_prefix"
rm -rf include

1
gnu-linux/meson.build

@ -72,6 +72,7 @@ zrythm_installed_target = custom_target ( @@ -72,6 +72,7 @@ zrythm_installed_target = custom_target (
make_zrythm, '@OUTPUT@', '@PRIVATE_DIR@', '@INPUT0@',
'/opt/zrythm' + dash_trial + '-' + zrythm_pkg_ver,
meson_bin, zplugins_src_tarball,
demo_project_zip,
],
depends: zrythm_deps,
console: true,

5
osx-brew/make_pkg.sh.in

@ -31,6 +31,7 @@ postinstall_script="$9" @@ -31,6 +31,7 @@ postinstall_script="$9"
conclusion_html="${10}"
uninstall_sh="${11}"
info_plist="${12}"
demo_project_zip="${13}"
dash_trial="@DASH_TRIAL@"
breeze_dark="@BREEZE_DARK@"
@ -177,6 +178,10 @@ cp -rvf /usr/local/share/thumbnailers $share_dir/ @@ -177,6 +178,10 @@ cp -rvf /usr/local/share/thumbnailers $share_dir/
# copy mime database if it exists
cp -rvf /usr/local/share/mime $share_dir/ || true
# copy demo projects
mkdir -p "$share_dir/zrythm/templates"
unzip "$demo_project_zip" -d "$share_dir/zrythm/templates"
# copy gtk schemas
for schema in `ls /usr/local/share/glib-2.0/schemas`; do
if [[ "$schema" == *"org.gtk."* ]]; then

2
osx-brew/meson.build

@ -163,7 +163,7 @@ installer_pkg = custom_target ( @@ -163,7 +163,7 @@ installer_pkg = custom_target (
'@PRIVATE_DIR@',
meson.source_root() / 'ext/macos-installer-builder',
welcome_html, postinstall_script, conclusion_html,
uninstall_sh, info_plist
uninstall_sh, info_plist, demo_project_zip,
],
console: true,
install: true,

11
sources/meson.build

@ -111,3 +111,14 @@ run_target ( @@ -111,3 +111,14 @@ run_target (
'gen-breeze-icons',
command: [ 'echo', 'done' ],
depends: breeze_icons)
demo_project_zip = custom_target (
'demo-project-zip',
output: 'demo_zsong01.zip',
command: [
'wget',
'https://www.zrythm.org/demo-projects/demo_zsong01.zip',
'-O', '@OUTPUT@',
],
install: false,
)

7
windows-msys/make_dist_dir.sh.in

@ -30,6 +30,7 @@ breeze_dark_path="$8" @@ -30,6 +30,7 @@ breeze_dark_path="$8"
carla_zip_path="$9"
mingw_packages_zip_path="${10}"
mingw_packages_commit="${11}"
demo_project_zip="${12}"
dash_trial="@DASH_TRIAL@"
zrythm_pkg_ver="@ZRYTHM_PKG_VERSION@"
@ -152,6 +153,12 @@ EOL @@ -152,6 +153,12 @@ EOL
cp -R $chroot_mingw_prefix/share/fonts $dist_sharedir/
# ******************************
# ******************************
echo "packaging demo projects"
mkdir -p "$dist_sharedir/zrythm/templates"
unzip "$demo_project_zip" -d "$dist_sharedir/zrythm/templates"
# ******************************
# ******************************
echo "packaging gdk pixbuf loaders"
pixbuf_dir="lib/gdk-pixbuf-2.0/2.10.0"

5
windows-msys/meson.build

@ -429,16 +429,17 @@ installer_dist_dir = custom_target ( @@ -429,16 +429,17 @@ installer_dist_dir = custom_target (
rcedit_x64_exe, dll_dir,
breeze_icons, carla_zip_windows,
mingw_packages_zip,
demo_project_zip,
],
command: [
bash, '-c',
'@INPUT0@ "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" ' +
'"$9" "${10}" "${11}"',
'"$9" "${10}" "${11}" "${12}"',
'_ignored',
'@OUTPUT@', '@INPUT1@', chroot_dir,
'@PRIVATE_DIR@', '@INPUT2@', '@INPUT3@',
'@INPUT4@', '@INPUT5@', '@INPUT6@', '@INPUT7@',
mingw_packages_commit,
mingw_packages_commit, '@INPUT8@',
],
console: true,
install: false,

Loading…
Cancel
Save