8 Commits
v1.0 ... v1.0.2

8 changed files with 48 additions and 14 deletions

3
.gitignore vendored
View File

@@ -1,4 +1,5 @@
build/
vendor/
vendor-bin/
composer.lock
composer.lock
vendor/*

View File

@@ -2,12 +2,19 @@
<?php
require_once(__DIR__."/vendor/autoload.php"); // Pull in Composer Autoload
require_once(__DIR__."/lib/libAndroidDevices.php");
define("APPNAME", "tononixOS Kernel Update Client"); // Define the application name so our universal application stub can find it.
/**
* Application Name: tononixOS Kernel Update Client
* Application Desc: Allows tononixOS devices to update their kernel via source with no user intervention, similar to Gentoo's Genkernel
* Application Ver: 1.0
* Application Ver: v1.0.2
*/
/**
* TODO: Device detection
* TODO: Use of device-configs for cloning kernel repositories
* TODO: Build own tononixOS self-update mechanism
*/
class RoboFile extends \Robo\Tasks

View File

@@ -1 +1 @@
{$GITTAG}
v1.0.2

10
build.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
composer install
if [[ $1 != "" ]]; then
bumpver update $1
else
bumpver update --patch
fi
vendor/bin/box compile
cp VERSION build/VERSION

15
bumpver.toml Normal file
View File

@@ -0,0 +1,15 @@
[bumpver]
current_version = "v1.0.2"
version_pattern = "vMAJOR.MINOR[.PATCH][-TAG]"
commit_message = "bump version {old_version} -> {new_version}"
commit = true
tag = true
push = false
[bumpver.file_patterns]
"VERSION" = [
'{version}'
]
"RoboFile.php" = [
' * Application Ver: {version}'
]

View File

@@ -3,14 +3,22 @@
"description": "Updates kernel images on tononixOS devices.",
"type": "project",
"minimum-stability": "dev",
"authors": [
{
"name": "Tonoxis",
"email": "toxus@tonoxisisle.services"
}
],
"repositories": [
{
"type": "vcs",
"url": "https://tonoxisisle.services/git/tononixOS/tononixOS_library_android-devices"
}
],
"require": {
"consolidation/robo": "^3.0"
"consolidation/robo": "^3.0",
"tononixos/tononixos_library_android-devices": "master"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.4"

View File

@@ -18,7 +18,7 @@ $classLoader = require $autoloaderPath;
// Customization variables
$appName = "tononixOS Kernel Update Client";
$appName = APPNAME;
$appVersion = trim(file_get_contents(__DIR__ . '/VERSION'));
$commandClasses = [ \RoboFile::class ];
$selfUpdateRepository = 'tononixos/tononix_application_krnlupdate';
@@ -27,7 +27,7 @@ $configurationFilename = 'config.yml';
// Define our Runner, and pass it the command classes we provide.
$runner = new \Robo\Runner($commandClasses);
$runner
->setSelfUpdateRepository($selfUpdateRepository)
// ->setSelfUpdateRepository($selfUpdateRepository) // This is now disabled as tononixOS uses the Tonoxis Isle Git service for it's code storage.
->setConfigurationFilename($configurationFilename)
->setClassLoader($classLoader);

7
vendor/autoload.php vendored
View File

@@ -1,7 +0,0 @@
<?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderIniteef511e4731ef08dd3acba7ed3674cbc::getLoader();