mirror of
https://github.com/YunoHost-Apps/jupyterlab_ynh.git
synced 2024-09-03 19:26:35 +02:00
27 lines
902 B
Bash
27 lines
902 B
Bash
#!/bin/bash
|
|
|
|
#=================================================
|
|
# COMMON VARIABLES
|
|
#=================================================
|
|
|
|
nodejs_version="18"
|
|
|
|
#=================================================
|
|
# PERSONAL HELPERS
|
|
#=================================================
|
|
|
|
upstream_version() {
|
|
upstream_repository=$(ynh_read_manifest --manifest_key='upstream.code')
|
|
upstream_url=$(ynh_read_manifest --manifest_key='resources.sources.main.url')
|
|
upstream_commit=$(echo "$upstream_url" | sed -e "s|^${upstream_repository}/archive/refs/tags/\(.*\)\.tar\.gz|\1|")
|
|
echo "$upstream_commit"
|
|
}
|
|
jupyterlab_version="$(upstream_version)"
|
|
|
|
#=================================================
|
|
# EXPERIMENTAL HELPERS
|
|
#=================================================
|
|
|
|
#=================================================
|
|
# FUTURE OFFICIAL HELPERS
|
|
#=================================================
|