Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bda5bd7f10 | ||
|
|
81906ef8b9 | ||
|
|
ee8cd323f5 | ||
|
|
e788fa9720 | ||
|
|
232b31a5a1 | ||
|
|
41f8a96478 | ||
|
|
4ff01ee9eb | ||
|
|
e09664a715 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -3,3 +3,5 @@ vendor/
|
||||
vendor-bin/
|
||||
composer.lock
|
||||
vendor/*
|
||||
.vs/
|
||||
obj/
|
||||
|
||||
10
README.md
Normal file
10
README.md
Normal file
@@ -0,0 +1,10 @@
|
||||
## console-app
|
||||
|
||||
Template for creating .NET core console applications in PHP.
|
||||
|
||||
### How to run
|
||||
1. Install peachpie templates
|
||||
2. `dotnet new console -lang PHP`
|
||||
3. `dotnet restore`
|
||||
4. Modify `program.php` (optional)
|
||||
5. `dotnet run`
|
||||
0
RoboFile.php
Executable file → Normal file
0
RoboFile.php
Executable file → Normal file
16
krnlupdate.msbuildproj
Normal file
16
krnlupdate.msbuildproj
Normal file
@@ -0,0 +1,16 @@
|
||||
<Project Sdk="Peachpie.NET.Sdk/1.0.6">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<StartupObject>init.php</StartupObject>
|
||||
<Description>A build system that provides build and update services to tononixOS.</Description>
|
||||
<PackageId>tononixOS_krnlupdate</PackageId>
|
||||
<Authors>Rick Blair <ShadowEO@outlook.com></Authors>
|
||||
<Company>Tonoxis Isle Services</Company>
|
||||
<Product>tononixOS Kernel Build/Update System</Product>
|
||||
<Copyright>Tonoxis Isle Services (c) 2018-*</Copyright>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="**/*.php" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
47
tos-packaging/package.class.php
Normal file
47
tos-packaging/package.class.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace Packaging\Tasks;
|
||||
|
||||
class Package extends \Robo\Tasks
|
||||
{
|
||||
/**
|
||||
* Installs the package
|
||||
*
|
||||
* @option prefix Location to install package to
|
||||
*/
|
||||
function packageInstall($opts = ['prefix' => "/usr"])
|
||||
{
|
||||
|
||||
if(!file_exists(getcwd()."/build/krnlupdate.phar"))
|
||||
{
|
||||
$this->packageBuild();
|
||||
}
|
||||
$this->_copy(getcwd()."/build/krnlupdate.phar", $opts['prefix']."/usr/sbin/krnlupdate.phar");
|
||||
}
|
||||
/**
|
||||
* Removes the package
|
||||
*
|
||||
* @option prefix Location to remove package from
|
||||
*/
|
||||
function packageRemove($opts = ['prefix' => "/usr"])
|
||||
{
|
||||
$this->_remove($opts['prefix']."/usr/sbin/krnlupdate.phar");
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds the package
|
||||
*/
|
||||
function packageBuild()
|
||||
{
|
||||
|
||||
|
||||
$this->taskComposerInstall()
|
||||
->dir(getcwd())
|
||||
->args("--quiet")
|
||||
->run();
|
||||
$this->taskExec("box compile")
|
||||
->printOutput(false)
|
||||
->run();
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user