Skip to content
Open

Draw #58

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions conf/.env
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ OCIS_CONFIG_DIR=__DATA_DIR__/config/
OCIS_BASE_DATA_PATH=__DATA_DIR__
OCIS_CORS_ALLOW_ORIGINS=[*]

WEB_ASSET_APPS_PATH=__INSTALL_DIR__/apps/

#OCIS_EXCLUDE_RUN_SERVICES=thumbnails

# Set this to true if you want to enforce passwords on all public shares.
Expand Down
21 changes: 21 additions & 0 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,27 @@ ram.runtime = "50M"
autoupdate.asset.armhf = "^ocis-.*-linux-arm$"
autoupdate.asset.i386 = "^ocis-.*-linux-386$"

[resources.sources.draw-io]
url = "https://github.com/owncloud/web-extensions/releases/download/draw-io-v0.3.0/draw-io-0.3.0.zip"
sha256 = "64ac799eb0576da5cf7f7f1ac9308090148ad423624713beae0f1c0820b77488"
in_subdir = false
autoupdate.strategy = "latest_github_release"
autoupdate.asset = "^draw-io-.*.zip"

[resources.sources.external-sites]
url = "https://github.com/owncloud/web-extensions/releases/download/external-sites-v0.3.0/external-sites-0.3.0.zip"
sha256 = "82bb9227f95394b23b215c336ab6f133c229a988964c347b718bac23c404436a"
in_subdir = false
autoupdate.strategy = "latest_github_release"
autoupdate.asset = "^external-sites-.*.zip"

[resources.sources.unzip]
url = "https://github.com/owncloud/web-extensions/releases/download/unzip-v0.4.0/unzip-0.4.0.zip"
sha256 = "ab3a13c2e4da8185b7d992b90f7bd6e4b62dd4964cda130e53095fde043c7687"
in_subdir = false
autoupdate.strategy = "latest_github_release"
autoupdate.asset = "^unzip-.*.zip"

[resources.system_user]
allow_email = true

Expand Down
4 changes: 4 additions & 0 deletions scripts/install
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ ynh_script_progression "Setting up source files..."
# Download, check integrity, uncompress and patch the source from manifest.toml
ynh_setup_source --dest_dir="$install_dir"

ynh_setup_source --dest_dir="$install_dir/apps" --source_id="draw-io"
ynh_setup_source --dest_dir="$install_dir/apps" --source_id="external-sites"
ynh_setup_source --dest_dir="$install_dir/apps" --source_id="unzip"

chmod +x $install_dir/ocis

#=================================================
Expand Down
7 changes: 5 additions & 2 deletions scripts/upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ ynh_systemctl --service="$app" --action="stop" --log_path="systemd"
#=================================================
ynh_script_progression "Upgrading source files..."

# Download, check integrity, uncompress and patch the source from manifest.toml
ynh_setup_source --dest_dir="$install_dir" --full_replace
ynh_setup_source --dest_dir="$install_dir" --full_replace --keep="apps apps/external-sites/manifest.json"

ynh_setup_source --dest_dir="$install_dir/apps" --source_id="external-sites"
ynh_setup_source --dest_dir="$install_dir/apps" --source_id="draw-io"
ynh_setup_source --dest_dir="$install_dir/apps" --source_id="unzip"

chmod +x $install_dir/ocis

Expand Down