mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-12-22 13:45:02 +00:00
Hotfix: Patch download packer, which was inadvertently broken
This commit is contained in:
parent
9cf3105fc6
commit
44867b6342
10 changed files with 74 additions and 8 deletions
|
@ -1,6 +1,11 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
This file holds the changelog for Pepperminty Wiki. This is the master list of things that have changed (second only to the commit history!) - though the information for any particular release can also be found in the description of it's page for every release made on GitHub too.
|
This file holds the changelog for Pepperminty Wiki. This is the master list of things that have changed (second only to the commit history!) - though the information for any particular release can also be found in the description of it's page for every release made on GitHub too.
|
||||||
|
|
||||||
|
|
||||||
|
## v0.19.1-hotfix
|
||||||
|
- Patched [the downloader](https://starbeamrainbowlabs.com/labs/peppermint/download.php) which was throwing warnings when packing downloads
|
||||||
|
|
||||||
|
|
||||||
## v0.19
|
## v0.19
|
||||||
|
|
||||||
_(No changes have been made since the last beta release.)_
|
_(No changes have been made since the last beta release.)_
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 7365f7d156a049d6f13987bbe55ff917e2a05254
|
Subproject commit 5cf2cfebf0ee66db9167eadaa8e1956bba58a730
|
46
pack.php
46
pack.php
|
@ -1,5 +1,19 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
$paths = new stdClass();
|
||||||
|
$paths->extra_data_directory = "._extra_data";
|
||||||
|
|
||||||
|
if(isset($_GET["determine-latest-version"])) {
|
||||||
|
header("content-type: application/json");
|
||||||
|
exit(json_encode([
|
||||||
|
"latest_version" => trim(file_get_contents("https://raw.githubusercontent.com/sbrl/Pepperminty-Wiki/master/version")),
|
||||||
|
"local_version" => trim(file_get_contents("version"))
|
||||||
|
]));
|
||||||
|
}
|
||||||
|
|
||||||
|
>>>>>>> 24d15b1... Hotfix: Patch download packer, which was inadvertently broken
|
||||||
/**
|
/**
|
||||||
* Logs a string to stdout, but only on the CLI.
|
* Logs a string to stdout, but only on the CLI.
|
||||||
* @param string $line The line to log.
|
* @param string $line The line to log.
|
||||||
|
@ -13,12 +27,23 @@ function log_str(string $line) {
|
||||||
log_str("*** Beginning main build sequence ***\n");
|
log_str("*** Beginning main build sequence ***\n");
|
||||||
log_str("Reading in module index...\n");
|
log_str("Reading in module index...\n");
|
||||||
|
|
||||||
|
if(isset($_GET["modules"]))
|
||||||
|
$requested_modules = explode(",", $_GET["modules"]);
|
||||||
|
|
||||||
$module_index = json_decode(file_get_contents("module_index.json"));
|
$module_index = json_decode(file_get_contents("module_index.json"));
|
||||||
$module_list = [];
|
$module_list = [];
|
||||||
foreach($module_index as $module)
|
foreach($module_index as $module) {
|
||||||
{
|
/*
|
||||||
// If the module is optional, the module's id isn't present in the command line arguments, and the special 'all' module id wasn't passed in, skip it
|
* If:
|
||||||
if($module->optional &&
|
* - The module is optional
|
||||||
|
* - ...AND we're on the command line
|
||||||
|
* - ...AND the module isn't specified in the CLI arguments
|
||||||
|
* - ...AND the special keyword "all" isn't specified in the CLI arguments
|
||||||
|
* ....then skip it.
|
||||||
|
*/
|
||||||
|
if(
|
||||||
|
php_sapi_name() == "cli" &&
|
||||||
|
$module->optional &&
|
||||||
(
|
(
|
||||||
isset($argv) &&
|
isset($argv) &&
|
||||||
strrpos(implode(" ", $argv), $module->id) === false &&
|
strrpos(implode(" ", $argv), $module->id) === false &&
|
||||||
|
@ -26,12 +51,19 @@ foreach($module_index as $module)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If:
|
||||||
|
* - We're NOT on the command line
|
||||||
|
* - ...AND the module isn't requested
|
||||||
|
* ...then skip it.
|
||||||
|
*/
|
||||||
|
if(php_sapi_name() != "cli" && !in_array($module->id, $requested_modules))
|
||||||
|
continue;
|
||||||
|
|
||||||
$module_list[] = $module;
|
$module_list[] = $module;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($_GET["modules"]))
|
|
||||||
$module_list = explode(",", $_GET["modules"]);
|
|
||||||
|
|
||||||
if(php_sapi_name() != "cli") {
|
if(php_sapi_name() != "cli") {
|
||||||
header("content-type: text/php");
|
header("content-type: text/php");
|
||||||
header("content-disposition: attachment; filename=\"index.php\"");
|
header("content-disposition: attachment; filename=\"index.php\"");
|
||||||
|
|
BIN
themes/blue/preview_large.png
Normal file
BIN
themes/blue/preview_large.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 57 KiB |
BIN
themes/blue/preview_small.png
Normal file
BIN
themes/blue/preview_small.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
BIN
themes/default/preview_large.png
Normal file
BIN
themes/default/preview_large.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 58 KiB |
BIN
themes/default/preview_small.png
Normal file
BIN
themes/default/preview_small.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
BIN
themes/none/preview_large.png
Normal file
BIN
themes/none/preview_large.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 103 KiB |
BIN
themes/none/preview_small.png
Normal file
BIN
themes/none/preview_small.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
29
themes/themeindex.json
Normal file
29
themes/themeindex.json
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"hash": "095d0ec43392e33173968346d0d4f71e7317eb2e053a6b760ade937a5cf02837",
|
||||||
|
"id": "none",
|
||||||
|
"name": "No theme",
|
||||||
|
"description": "A special theme with no CSS. Useful if you want to create your own complete new theme!",
|
||||||
|
"author": "Starbeamrainbowlabs",
|
||||||
|
"author_link": "https://starbeamrainbowlabs.com/",
|
||||||
|
"minversion": "0.20"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"hash": "0051557af4e42dec41df0f8c28ac3925bbbb291f7ab0ed1025a0644ab1bfcf3e",
|
||||||
|
"id": "default",
|
||||||
|
"name": "Default",
|
||||||
|
"description": "The default theme.",
|
||||||
|
"author": "Starbeamrainbowlabs",
|
||||||
|
"author_link": "https://starbeamrainbowlabs.com/",
|
||||||
|
"minversion": "0.20"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"hash": "477e94cba918c41d63bf1a894046c783797201603bf46bce0cb447414af79d4b",
|
||||||
|
"id": "blue",
|
||||||
|
"name": "Blue",
|
||||||
|
"description": "A more blue theme.",
|
||||||
|
"author": "ZestyclosePainting",
|
||||||
|
"author_link": "https://reddit.com/u/ZestyclosePainting",
|
||||||
|
"minversion": "0.20"
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in a new issue