diff --git a/.idea/runConfigurations/Build_Tarball.xml b/.idea/runConfigurations/Build_Tarball.xml deleted file mode 100644 index 7ec879f..0000000 --- a/.idea/runConfigurations/Build_Tarball.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/Clean.xml b/.idea/runConfigurations/Clean.xml deleted file mode 100644 index e088b48..0000000 --- a/.idea/runConfigurations/Clean.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/Makefile b/Makefile index 3b542d4..21dbe2d 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,12 @@ # Variables PHPCC := $(shell which php) PHPAB := $(shell which phpab) -BUILD_PATH := build SRC_PATH := src INSTALLER_PATH := $(SRC_PATH)/installer CONFIG_PATH := $(SRC_PATH)/config TIMESTAMP := $(shell date +%Y%m%d%H%M%S) +BUILD_VERSION := $(shell cat $(SRC_PATH)/ncc/VERSION) +BUILD_PATH := build/ncc-$(BUILD_VERSION) # List of paths for autoloading AUTOLOAD_PATHS := $(addprefix $(SRC_PATH)/ncc/ThirdParty/, \ @@ -56,28 +57,28 @@ autoload: $(addsuffix /autoload_spl.php, $(AUTOLOAD_PATHS)) $(SRC_PATH)/ncc/auto .PHONY: redist redist: autoload - rm -rf $(BUILD_PATH)/src - mkdir -p $(BUILD_PATH)/src - cp -rf $(SRC_PATH)/ncc/* $(BUILD_PATH)/src - cp -f $(INSTALLER_PATH)/installer $(BUILD_PATH)/src/INSTALL - cp -f $(INSTALLER_PATH)/ncc.sh $(BUILD_PATH)/src/ncc.sh - cp -f $(CONFIG_PATH)/ncc.yaml $(BUILD_PATH)/src/default_config.yaml - cp -f $(CONFIG_PATH)/ncc.yaml $(BUILD_PATH)/src/CLI/template_config.yaml - cp -f $(CONFIG_PATH)/default_repositories.json $(BUILD_PATH)/src/default_repositories.json - cp -f $(CONFIG_PATH)/ncc-package.xml $(BUILD_PATH)/src/ncc-package.xml - cp -f $(INSTALLER_PATH)/extension $(BUILD_PATH)/src/extension - chmod +x $(BUILD_PATH)/src/INSTALL - cp -f LICENSE $(BUILD_PATH)/src/LICENSE - cp -f README.md $(BUILD_PATH)/src/README.md - cp -f $(INSTALLER_PATH)/hash_check.php $(BUILD_PATH)/src/hash_check.php - $(PHPCC) $(BUILD_PATH)/src/hash_check.php - rm $(BUILD_PATH)/src/hash_check.php - cp -f $(INSTALLER_PATH)/generate_build_files.php $(BUILD_PATH)/src/generate_build_files.php - $(PHPCC) $(BUILD_PATH)/src/generate_build_files.php - rm $(BUILD_PATH)/src/generate_build_files.php + rm -rf $(BUILD_PATH) + mkdir -p $(BUILD_PATH) + cp -rf $(SRC_PATH)/ncc/* $(BUILD_PATH) + cp -f $(INSTALLER_PATH)/installer $(BUILD_PATH)/INSTALL + cp -f $(INSTALLER_PATH)/ncc.sh $(BUILD_PATH)/ncc.sh + cp -f $(CONFIG_PATH)/ncc.yaml $(BUILD_PATH)/default_config.yaml + cp -f $(CONFIG_PATH)/ncc.yaml $(BUILD_PATH)/CLI/template_config.yaml + cp -f $(CONFIG_PATH)/default_repositories.json $(BUILD_PATH)/default_repositories.json + cp -f $(CONFIG_PATH)/ncc-package.xml $(BUILD_PATH)/ncc-package.xml + cp -f $(INSTALLER_PATH)/extension $(BUILD_PATH)/extension + chmod +x $(BUILD_PATH)/INSTALL + cp -f LICENSE $(BUILD_PATH)/LICENSE + cp -f README.md $(BUILD_PATH)/README.md + cp -f $(INSTALLER_PATH)/hash_check.php $(BUILD_PATH)/hash_check.php + $(PHPCC) $(BUILD_PATH)/hash_check.php + rm $(BUILD_PATH)/hash_check.php + cp -f $(INSTALLER_PATH)/generate_build_files.php $(BUILD_PATH)/generate_build_files.php + $(PHPCC) $(BUILD_PATH)/generate_build_files.php + rm $(BUILD_PATH)/generate_build_files.php $(BUILD_PATH)/build_$(TIMESTAMP).tar.gz: redist - cd $(BUILD_PATH)/src; tar -czvf ../build_$(TIMESTAMP).tar.gz * + cd $(BUILD_PATH); tar -czvf ../ncc_$(BUILD_VERSION).tar.gz * .PHONY: tar tar: $(BUILD_PATH)/build_$(TIMESTAMP).tar.gz diff --git a/src/debian/changelog b/src/debian/changelog new file mode 100644 index 0000000..ed67c80 --- /dev/null +++ b/src/debian/changelog @@ -0,0 +1,9 @@ +ncc (2.0.0) unstable; urgency=medium + + * New major release. + * Various changes and improvements. + * Updated to be compatible with PHP 8.0+. + * Added support for package management. + * Enhancements to the compiler and toolkit. + + -- netkas Tue, 04 Oct 2023 21:24:00 +0000 \ No newline at end of file diff --git a/src/debian/control b/src/debian/control new file mode 100644 index 0000000..1cb0b27 --- /dev/null +++ b/src/debian/control @@ -0,0 +1,9 @@ +Package: ncc +Version: 2.0.0 +Architecture: any +Maintainer: netkas +Homepage: https://git.n64.cc/nosial/ncc +Depends: php (>= 8.0), php-mbstring, php-common, php-ctype, php-curl, zlib1g, php-zip +Description: Nosial Code Compiler is a multi-purpose compiler, package manager, and toolkit written in PHP. + NCC (Nosial Code Compiler) is a versatile tool designed for various tasks related to PHP development. + It allows you to compile PHP code, manage packages, and perform various tasks in a PHP-centric environment. \ No newline at end of file diff --git a/src/debian/copyright b/src/debian/copyright new file mode 100644 index 0000000..e7b2baa --- /dev/null +++ b/src/debian/copyright @@ -0,0 +1,8 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: ncc +Upstream-Contact: netkas +Source: https://git.n64.cc/nosial/ncc + +Files: * +Copyright: 2022-2023 Nosial - All Rights Reserved. +License: MIT \ No newline at end of file diff --git a/src/ncc/VERSION b/src/ncc/VERSION new file mode 100644 index 0000000..359a5b9 --- /dev/null +++ b/src/ncc/VERSION @@ -0,0 +1 @@ +2.0.0 \ No newline at end of file