Compare commits
6 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b975508d07 | ||
![]() |
1ef96c3c4c | ||
![]() |
2dad5133bd | ||
![]() |
544d4ebdf6 | ||
![]() |
41947069be | ||
![]() |
11aaa39eaa |
7 changed files with 46 additions and 30 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -31,3 +31,4 @@ tests/example_project/ncc
|
|||
tests/example_project/build
|
||||
/.phpunit.result.cache
|
||||
/.idea/php-test-framework.xml
|
||||
/.idea/gbrowser_project.xml
|
||||
|
|
15
CHANGELOG.md
15
CHANGELOG.md
|
@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [2.1.6] - 2024-10-29
|
||||
|
||||
This update introduces critical bug fixes
|
||||
|
||||
### Fixed
|
||||
- Validate package instance before checking execution policy
|
||||
|
||||
|
||||
|
||||
## [2.1.5] - 2024-10-14
|
||||
|
||||
This update introduces a critical bug fix
|
||||
|
||||
|
||||
|
||||
## [2.1.4] - 2024-10-13
|
||||
|
||||
This update introduces minor bug fixes & improvements
|
||||
|
|
42
Makefile
42
Makefile
|
@ -18,23 +18,23 @@ DEBIAN_PACKAGE_BUILD_PATH := $(BUILD_PATH)/ncc_$(BUILD_VERSION)_all.deb
|
|||
|
||||
# List of paths for autoloading
|
||||
AUTOLOAD_PATHS := $(addprefix $(SRC_PATH)/ncc/ThirdParty/, \
|
||||
composer/Semver \
|
||||
defuse/php-encryption \
|
||||
jelix/version \
|
||||
nikic/PhpParser \
|
||||
Symfony/polyfill_ctype \
|
||||
Symfony/polyfill_mbstring \
|
||||
Symfony/polyfill_uuid \
|
||||
Symfony/Process \
|
||||
Symfony/Uid \
|
||||
Symfony/Filesystem \
|
||||
Symfony/Yaml \
|
||||
theseer/DirectoryScanner \
|
||||
composer/Semver \
|
||||
defuse/php-encryption \
|
||||
jelix/version \
|
||||
nikic/PhpParser \
|
||||
Symfony/polyfill_ctype \
|
||||
Symfony/polyfill_mbstring \
|
||||
Symfony/polyfill_uuid \
|
||||
Symfony/Process \
|
||||
Symfony/Uid \
|
||||
Symfony/Filesystem \
|
||||
Symfony/Yaml \
|
||||
theseer/DirectoryScanner \
|
||||
)
|
||||
|
||||
# Check for necessary binaries
|
||||
ifndef PHPCC
|
||||
$(error "PHP binary not found. Please install PHP or check your PATH")
|
||||
$(error "PHP binary not found. Please install PHP or check your PATH")
|
||||
endif
|
||||
|
||||
# Check if phpab is installed
|
||||
|
@ -153,13 +153,13 @@ clean:
|
|||
.PHONY: help
|
||||
help:
|
||||
@echo "Available commands:"
|
||||
@echo " make autoload - Generate autoload files"
|
||||
@echo " make redist - Prepare the project for redistribution"
|
||||
@echo " make install - Installs ncc on the system (requires root privileges & php)"
|
||||
@echo " make tar - Package the project into a tarball (Generic installer, requires php)"
|
||||
@echo " make deb - Package the project into a Debian package"
|
||||
@echo " make docker-debian - Build a Debian Docker image"
|
||||
@echo " make autoload - Generate autoload files"
|
||||
@echo " make redist - Prepare the project for redistribution"
|
||||
@echo " make install - Installs ncc on the system (requires root privileges & php)"
|
||||
@echo " make tar - Package the project into a tarball (Generic installer, requires php)"
|
||||
@echo " make deb - Package the project into a Debian package"
|
||||
@echo " make docker-debian - Build a Debian Docker image"
|
||||
@echo " make docker-debian-run - Run the Debian Docker image"
|
||||
@echo " make docker-alpine - Build an Alpine Docker image"
|
||||
@echo " make docker-alpine - Build an Alpine Docker image"
|
||||
@echo " make docker-alpine-run - Run the Alpine Docker image"
|
||||
@echo " make clean - Clean the build artifacts"
|
||||
@echo " make clean - Clean the build artifacts"
|
|
@ -40,7 +40,7 @@
|
|||
|
||||
- name: Build project
|
||||
run: |
|
||||
ncc build --config %TPL_BUILD_NAME% --log-level debug
|
||||
ncc build --config %TPL_BUILD_NAME% --build-source --log-level debug
|
||||
|
||||
- name: Upload build artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
|
|
|
@ -94,14 +94,14 @@
|
|||
throw new InvalidArgumentException(sprintf('Package %s is not imported', $package));
|
||||
}
|
||||
|
||||
if(self::$imported_packages[$package]?->getMetadata()?->getMainExecutionPolicy() === null)
|
||||
{
|
||||
Console::out('The package does not have a main execution policy, skipping execution');
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(self::$imported_packages[$package] instanceof PackageReader)
|
||||
{
|
||||
if(self::$imported_packages[$package]?->getMetadata()?->getMainExecutionPolicy() === null)
|
||||
{
|
||||
Console::out('The package does not have a main execution policy, skipping execution');
|
||||
return 0;
|
||||
}
|
||||
|
||||
return ExecutionUnitRunner::executeFromPackage(
|
||||
self::$imported_packages[$package],
|
||||
self::$imported_packages[$package]->getMetadata()->getMainExecutionPolicy()
|
||||
|
|
|
@ -1 +1 @@
|
|||
2.1.4
|
||||
2.1.6
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "2.1.4",
|
||||
"version": "2.1.6",
|
||||
"branch": "stable",
|
||||
"flags": [],
|
||||
"components": [
|
||||
|
|
Loading…
Add table
Reference in a new issue