Skip to content
Merged
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
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

TARGET_PACKAGE_NAME=easy-storage.zip

.PHONY: help .build_deps add_config_partials build_release build_locally build_dep_ionos_theme build_dep_nc_ionos_processes_app build_dep_simplesettings_app build_dep_user_oidc_app zip_dependencies
.PHONY: help .build_deps add_config_partials build_release build_locally build_dep_ionos_theme build_dep_nc_ionos_processes_app build_dep_simplesettings_app build_dep_user_oidc_app zip_dependencies version.json

help: ## This help.
@echo "Usage: make [target]"
Expand Down Expand Up @@ -75,12 +75,15 @@ build_dep_theming_app: ## Build the custom css
add_config_partials: ## Copy custom config files to Nextcloud config
cp IONOS/configs/*.config.php config/

zip_dependencies: ## Zip relevant files
version.json: ## Generate version file
buildDate=$$(date +%s) && \
buildRef=$$(git rev-parse --short HEAD) && \
jq -n --arg buildDate $$buildDate --arg buildRef $$buildRef '{buildDate: $$buildDate, buildRef: $$buildRef}' > version.json && \
ncVersion=$$(php -r 'include("version.php");echo implode(".", $$OC_Version);') && \
jq -n --arg buildDate $$buildDate --arg buildRef $$buildRef --arg ncVersion $$ncVersion '{buildDate: $$buildDate, buildRef: $$buildRef, ncVersion: $$ncVersion}' > version.json && \
echo "version.json created" && \
jq . version.json && \
jq . version.json

zip_dependencies: version.json ## Zip relevant files
echo "zip relevant files to $(TARGET_PACKAGE_NAME)" && \
zip -r "$(TARGET_PACKAGE_NAME)" \
IONOS/ \
Expand Down