Commit graph

258 commits

Author SHA1 Message Date
71214e769e
Refactor ncc extension registration logic, this also allows for debian packages to install the ncc extension automatically.
The logic related to the registration of the ncc extension has been refactored. Previously, the code that registered the ncc extension was contained in the installer. However, this change moves the code that registers the ncc extension from the installer to the Utilities/Functions class. This change was made because the extension registration is not only applicable to the installer, but is also required for several other components. This fact justified the need for the logic to be located in a more generic and accessible class. The Makefile, installer, generate_build_files.php files have been updated to reflect this change. Components using these should now work properly with the changes.
2023-10-12 16:24:36 -04:00
89b0c931b9
Fixed incorrect mime type in ncc-package.xml
This update addresses a mistake in the `ncc-package.xml` file, where the wrong mime type was specified. The mime type has been corrected from `application/ncc-package` to `application/ncc` and the glob pattern from `*.ncc_pkg` to `*.ncc`. This change will ensure proper recognition and handling of the file type.
2023-10-12 15:59:58 -04:00
4ef923b83c
- Fixed issue where some build artifacts are being bundled with package builds such as output_path and static
where they should not be included in the package.
 - Added the ability to pull static versions of packages from repositories where package names ending with `-static.ncc`
   or `_static.ncc` can be pulled if you use the `--prefer-static` or `--static` option when using the `package install`
   command. Otherwise, the normal package will be installed, avoiding static versions.
 - Added support for importing static packages from the system, allowing you to install static packages onto your
   system and import them without importing additional dependencies that isn't already included in the package.
2023-10-12 15:55:10 -04:00
d9b30a755d
Update dependencies import in \ncc\Classes > Runtime > importFromPackage()
Moved the recursive import of dependencies inside an else statement to provide a condition for fake importing dependencies. This change offers an effective way to handle static dependencies. It enhances the robustness of the package reading and dependency import process.
2023-10-11 20:22:07 -04:00
21753364dc
Updated fetchPackage method to include authentication 2023-10-11 19:04:36 -04:00
345a215a56
Bumped version to 2.0.2 2023-10-11 18:59:09 -04:00
08592e4cb6
Bumpde version in control 2023-10-11 00:34:35 -04:00
35981115eb
Add functionality to install project dependencies
Added a new feature in `ProjectManager.php` that allows automatic installation of a project's dependencies. The `installDependencies` function eases the task of separately installing each dependency. Now, both public and private dependencies can be installed collectively using the 'install' command added in `ProjectMenu.php`. This functionality is further documented in `DOCUMENTATION.md`.
2023-10-11 00:25:39 -04:00
e69ae7aba9
Bumped version to 2.0.1 2023-10-10 23:00:56 -04:00
87dc682ef2
Correct exception message for configuration property in \ncc\Objects\ProjectConfiguration\Build > BuildConfiguration > fromArray() 2023-10-10 23:00:46 -04:00
de9ee13aa1
Directory paths corrected in \ncc\Classes\PhpExtension\Templates > LibraryTemplate 2023-10-09 18:25:00 -04:00
a63d148f30
Updated bootstrap_main.c to no longer hard-code "ncc" but find it's execution point instead 2023-10-08 15:40:37 -04:00
09debf85c6
Improved template system 2023-10-08 15:35:20 -04:00
aeccdaea68
\ncc\CLI\Management > ProjectMenu > initializeProject() merged --path|-p option with --name|-n if path is not provided, the Name will be used instead. 2023-10-08 15:24:18 -04:00
0a2cee2a02
Added functionality to remove symlink registrations during the uninstallation process & upgraded fix-broken to also detect broken packages that are installed on the system 2023-10-08 15:13:19 -04:00
6388b27b7a
Removed unused \ncc\Utilities > Functions > convertToSemver() 2023-10-08 12:23:47 -04:00
3f67344a60
Removed unused \ncc\Utilities > Functions > isTtyMode() 2023-10-08 12:23:17 -04:00
32b455576d
Implemented "symlink" registration for system-level packages 2023-10-08 12:20:24 -04:00
b102089d80
Additional improvements to the debian build + a setup command built into ncc 2023-10-06 05:18:24 -04:00
5b57f12365
Added debian build (WIP) 2023-10-06 02:48:32 -04:00
Cybersecbyte [UFOLINUX]
41ec00d136 Remove repo downloading and use local files 2023-10-05 17:33:09 +00:00
Cybersecbyte [UFOLINUX]
bb09222f46 deb support 2023-10-05 16:47:17 +00:00
3a52815213
Added debian stuff & changed the build path to produce ncc-<version> in Makefile 2023-10-04 21:32:34 -04:00
8ce6c68d77
Implemented retry logic for HTTP requests in Repositories 2023-10-04 15:12:56 -04:00
cf7e1aa107
Minor correction in curl handling 2023-10-04 14:41:23 -04:00
d5e28d1f45
Updated PackagistRepository.php to use RuntimeCache for http requests 2023-10-03 19:25:13 -04:00
63411d7d65
Updated GitlabRepository.php to use RuntimeCache for http requests 2023-10-03 19:22:35 -04:00
b689be3bd5
Updated GithubRepository.php to use RuntimeCache for http requests 2023-10-03 19:08:37 -04:00
09977f9f11
Updated GiteaRepository.php to use RuntimeCache for http requests 2023-10-03 18:03:48 -04:00
8549cff119
Refactored RuntimeCache.php 2023-10-03 17:34:09 -04:00
021d5ec750
Corrected argument pass through in \ncc\Manager > PackageManager > downloadFile() where $file_handle is passed to ShutdownHandler::declareTemporaryPath() rather than $file_path 2023-10-03 17:22:12 -04:00
1e0ea848b8
Added check for empty package input 2023-10-03 17:15:01 -04:00
161ef357a2
Added beta flag 2023-10-03 17:12:27 -04:00
0b4dbf6cc1
Minor optimization 2023-10-01 17:47:58 -04:00
01589e509f
Minor correction 2023-10-01 16:35:48 -04:00
c73465e965
Changed output initialization 2023-10-01 16:33:31 -04:00
44a12b66cf
Added check for importing a package from the system 2023-10-01 16:28:57 -04:00
4d317d61ab
Removed unused Constants.php 2023-10-01 16:26:10 -04:00
234c6e955b
Added check for installing dependencies 2023-10-01 16:25:20 -04:00
9bc339d1cb
Merged output_path & output_name build configuration options to output 2023-10-01 14:44:05 -04:00
107ebfa68c
Implemented require files handler & implemented proper exception handling for the import function 2023-10-01 14:34:58 -04:00
c86b4b7465
Added '-y' argument to \ncc\CLI\Management > PackageManagerMenu > uninstallAllPackages() 2023-10-01 14:17:59 -04:00
67956d3641
Removed redundant call 2023-10-01 14:03:06 -04:00
f2b69253ae
Reduced function calls :D 2023-10-01 12:12:44 -04:00
05c6483edc
Added todo tasks 2023-10-01 11:55:13 -04:00
5d9168f664
Implemented static dependencies & corrected output argument 2023-09-30 21:27:12 -04:00
770dde9ed2
Corrected shadow copy logic to not use stream_copy_to_stream() as it causes unexpected results. 2023-09-30 02:20:01 -04:00
9ded98c3e1
Added the ability to reinstall & skip dependencies for installation procedures 2023-09-30 00:07:56 -04:00
976518439f
Added checksum 2023-09-29 23:42:56 -04:00
e1f813ab60
Oops 2023-09-29 17:01:59 -04:00