From 17fc004c93141d0c1b535bd36beef33ae2ca82b0 Mon Sep 17 00:00:00 2001 From: purple Date: Mon, 10 Apr 2023 16:50:23 +0200 Subject: [PATCH] Make things ready for distribution. --- README.md | 19 ++++++++++++-- .../Helpers/BlueprintVariableService.php | 4 +-- blueprint.sh | 25 +++++++++++++------ .../extensions/blueprint/index.blade.php | 2 +- 4 files changed, 38 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index ab23eb2..94e508c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,17 @@ -# ◆ teamblueprint/main -Blueprint allows extensions to be installed easely and multiple extensions to be installed without hardcoding compatibility. \ No newline at end of file +* ◆ Blueprint powered. +* +* Discord: discord.gg/CUwHwv6xRe +* Documentation: ptero.shop/docs + +## Introduction +Thank you so much for purchasing Blueprint and supporting the project. +If you get stuck anywhere, don't hesitate to join our Discord (linked above). + +## Installation +Before we begin installing Blueprint, make sure you both have an SFTP and SSH client installed and have access to the server you want to install Blueprint on. + +Start by connecting to your server via SFTP and navigate to "/var/www/pterodactyl". Drag and drop the Blueprint files over to this directory (and make sure to overwrite files if asked by your client of choice). + +Now open your SSH client and connect to your server. Navigate to "/var/www/pterodactyl" using "cd /var/www/pterodactyl" and run "bash blueprint.sh". After doing this step, head over to your Pterodactyl panel and do "CTRL + SHIFT + R" or "CTRL + F5" for Blueprint's css styles to apply. + +That was it, if you ran into a problem during installation, please let us know. We are constantly working on making Blueprint better, and we can't do it without your help. \ No newline at end of file diff --git a/app/Services/Helpers/BlueprintVariableService.php b/app/Services/Helpers/BlueprintVariableService.php index 97fede7..78ccbab 100644 --- a/app/Services/Helpers/BlueprintVariableService.php +++ b/app/Services/Helpers/BlueprintVariableService.php @@ -152,7 +152,7 @@ class BlueprintVariableService } public function version(): string { - $v = "indev"; + $v = "([(pterodactylmarket_version)])"; return $v; } public @@ -183,5 +183,5 @@ class BlueprintVariableService return shell_exec("blueprint -php ".$arg); } - public function licenseKey(): string{return "S08L79UGN4U7ZB3HY";} + public function licenseKey(): string{return "([(pterodactylmarket_transactionid)])";} } diff --git a/blueprint.sh b/blueprint.sh index 328d598..a9d38fe 100644 --- a/blueprint.sh +++ b/blueprint.sh @@ -39,30 +39,35 @@ chmod u+x /usr/local/bin/blueprint > /dev/null; if [[ $1 != "-bash" ]]; then if dbValidate "blueprint.setupFinished"; then clr_blue "This command only works if you have yet to install Blueprint. You can run \"\033[1;94mblueprint\033[0m\033[0;34m\" instead."; - dbRemove "blueprint.setupFinished"; exit 1; else + clr_bright "php artisan down"; + php artisan down; + clr_bright "/var/www/pterodactyl/public/themes/pterodactyl/css/pterodactyl.css"; sed -i "s!@import 'checkbox.css';!@import 'checkbox.css';\n@import url(/assets/extensions/blueprint/blueprint.style.css);!g" /var/www/pterodactyl/public/themes/pterodactyl/css/pterodactyl.css; clr_bright "php artisan view:clear"; - php artisan view:clear > /dev/null; + php artisan view:clear; clr_bright "php artisan config:clear"; - php artisan config:clear > /dev/null; + php artisan config:clear; - #clr_bright "php artisan migrate"; - #php artisan migrate; + clr_bright "php artisan migrate"; + php artisan migrate; clr_bright "chown -R www-data:www-data /var/www/pterodactyl/*"; - chown -R www-data:www-data /var/www/pterodactyl/* > /dev/null; + chown -R www-data:www-data /var/www/pterodactyl/*; clr_bright "chown -R www-data:www-data /var/www/pterodactyl/.*"; - chown -R www-data:www-data /var/www/pterodactyl/.* > /dev/null; + chown -R www-data:www-data /var/www/pterodactyl/.*; + + clr_bright "php artisan up"; + php artisan up; dbAdd "blueprint.setupFinished"; exit 1; @@ -204,4 +209,10 @@ fi; if [[ ( $2 == "-v" ) || ( $2 == "-version" ) ]]; then echo -e $VERSION; +fi; + +if [[ $2 == "-reinstall" ]]; then + dbRemove "blueprint.setupFinished"; + cd /var/www/pterodactyl; + bash blueprint.sh; fi; \ No newline at end of file diff --git a/resources/views/admin/extensions/blueprint/index.blade.php b/resources/views/admin/extensions/blueprint/index.blade.php index 6429aae..0390120 100644 --- a/resources/views/admin/extensions/blueprint/index.blade.php +++ b/resources/views/admin/extensions/blueprint/index.blade.php @@ -85,7 +85,7 @@
b())readonly @endif/> -

placeholder

+

This option doesn't do anything yet, but will be replaced with something functional in the future.