fix: autoloader + tar generation

This commit is contained in:
2025-11-16 16:24:15 +02:00
parent dbf9634025
commit 715fe59587
3 changed files with 16 additions and 6 deletions

View File

@@ -30,7 +30,7 @@ app_name=nextcloudapptemplate
repo_path=your-user/nextcloud-$(app_name)
build_tools_directory=$(CURDIR)/build/tools
source_build_directory=$(CURDIR)/build/artifacts/source
source_intermediate_directory=$(CURDIR)/build/artifacts/intermediate-source
source_intermediate_directory=$(CURDIR)/build/artifacts/intermediate-source/$(app_name)
source_package_name=$(source_build_directory)/$(app_name)
app_intermediate_directory=$(CURDIR)/build/artifacts/intermediate/$(app_name)
appstore_build_directory=$(CURDIR)/build/artifacts/appstore
@@ -152,9 +152,10 @@ source:
--exclude="node_modules" \
--exclude="*.log" \
--exclude="dist/js/*.log" \
--exclude="rename-template.sh" \
$(CURDIR)/ $(source_intermediate_directory)
cd $(source_intermediate_directory) && \
tar czf $(source_package_name).tar.gz ../$(app_name)
cd $(CURDIR)/build/artifacts/intermediate-source && \
tar czf $(source_package_name).tar.gz $(app_name)
# appstore:
# - Create an App Store tarball (strips tests, dotfiles, dev configs)
@@ -190,9 +191,10 @@ appstore:
--exclude=".*" \
--exclude="dist/js/.*" \
--exclude="/src" \
--exclude="rename-template.sh" \
$(CURDIR)/ $(app_intermediate_directory)
cd $(app_intermediate_directory) && \
tar czf $(appstore_package_name).tar.gz ../$(app_name)
cd $(CURDIR)/build/artifacts/intermediate && \
tar czf $(appstore_package_name).tar.gz $(app_name)
# test:
# - Run PHP unit tests (standard + optional integration config)

View File

@@ -1,6 +1,6 @@
{
"name": "nextcloud/nextcloudapptemplate",
"description": "Automatically fills the currency rates for your Cospend projects daily.",
"description": "Enter your app summary here.",
"license": "AGPL-3.0-or-later",
"authors": [
{

8
composer/autoload.php Normal file
View File

@@ -0,0 +1,8 @@
<?php
// SPDX-FileCopyrightText: Your Name <your@email.com>
// SPDX-License-Identifier: AGPL-3.0-or-later
//
declare(strict_types=1);
require_once __DIR__ . '/../vendor/autoload.php';