Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bd20f73100 | |||
| a3d7d5a3bf | |||
| 339a256bdf | |||
| e8d77693c0 | |||
| f2991e1d10 | |||
| 8c430753fa | |||
| f603433607 | |||
| 9d3c84b45d |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@ build/
|
||||
vendor/
|
||||
vendor-bin/
|
||||
composer.lock
|
||||
vendor/*
|
||||
|
||||
11
RoboFile.php
11
RoboFile.php
@@ -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
|
||||
|
||||
10
build.sh
Executable file
10
build.sh
Executable 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
15
bumpver.toml
Normal 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}'
|
||||
]
|
||||
@@ -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"
|
||||
|
||||
4
init.php
4
init.php
@@ -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
7
vendor/autoload.php
vendored
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
// autoload.php @generated by Composer
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderIniteef511e4731ef08dd3acba7ed3674cbc::getLoader();
|
||||
Reference in New Issue
Block a user