Bit Che => Scripts & Development => Topic started by: chip! on November 25, 2012, 05:10:20 pm

Title: FAQ -- [HOW TO] -- Host your own Script Pack - GitHub
Post by: chip! on November 25, 2012, 05:10:20 pm
Create and host your own Script Pack - Bit Che 2.0

Want to create an specialized Script Pack? Want your users to be able to fetch the latest version without having to download individual scripts?

This will help you sync a GitHub script pack to your own website and also provide the 'Update Check' for Bit Che.

For this example, the new Script Pack is named: devtest

1. First, clone the Bit Che 2.0 Script Pack at GitHub: ( You can also create your own without cloning, but follow the same Directory structure as our main github.

Note: if you clone then, the 'cache.ini' should not be included in your own script pack. ALSO, 'bcs.default.ini' needs to be renamed to '' (name = your script pack name) and the Update URL should be updated (see Step 7 below).

2. Download the file attached here: ""

3. Extract and Edit the important information in 'index.php':

$SecretKey = 'SecretKey2'; #set a password so no one else updates your Script Pack
$BaseURLGitHub = 'https ://'; #the base URL to your GitHub
$BaseURLScript = ''; #the base URL to your website that has the 'index.php'
$ScriptZip = ''; #what you want the script pack .zip to be named

4. Upload "index.php" to your website. Note: you can rename this to anything.

5. IMPORTANT: Make sure the directory on your website that contains the attached 'index.php' is CHMOD 775. The script needs to be able to write files (hash CRC32 for the, the, log file).

6. next, in GitHub, use the 'WebHook URL' under 'Adminstration | Service Hooks'

put in your URL to the script, for example: ([YourSecretKey]

NOTE: Make sure you include pw=[YourSecretKey] in your URL where [YourSecretKey] equals what you put into the 'index.php' file under $SecretKey = 'SecretKey2';

For our example, the URL would be:

See the attached image for more information.

7. Next, setup the 'Bit Che Script Pack Config File' and put in your Bit Che /scripts/ folder:

for example, 'bcs.devtest.ini' which follows the file name format '' (name = your script pack name)

Code: [Select]

note: notice we point the update URL to your website. also, make sure you add ?uid=bit&v=%VER%&s=%HASH% at the end of your URL.

8. add/update the file from Step 7 into your GitHub script pack in the root directory (as our main GitHub has 'bcs.default.ini' as an example). There should only be one '' file in your Script Pack.

9. Optional: (if you did not make a change to your GitHub in Step 8) then, make an update to your GitHub script pack and then it will be automatically sent to your website.

10. launch Bit Che and update your new Script Pack, and enjoy!
Title: Re: FAQ -- [HOW TO] -- Host your own Script Pack - GitHub
Post by: chip! on November 26, 2012, 11:28:50 am
If you need help with the instructions or need a place to host your update script (index.php), please send me a PM or post here. I can help with both.
Title: Re: FAQ -- [HOW TO] -- Host your own Script Pack - GitHub
Post by: chip! on January 12, 2013, 05:47:47 am
This can also be done without the use of github, but you will have to manually upload a .zip on every update.. I might make a new php script for that if anyone wants to do this without github.
Title: Re: FAQ -- [HOW TO] -- Host your own Script Pack - GitHub
Post by: maymayer on August 31, 2015, 11:51:35 am
That sounds good. I think it will be helpful.