![]() |
J.1 Building and Deploying |
Deploying (or building) a SheerPower program is similar to compiling and linking. Deployment is optional—it’s used to protect your source code from being viewed or modified and does not affect how your program runs.
For example, deploying MyProgram.spsrc
creates
MyProgram.sprun
. The .sprun
file contains
compressed, base64-encoded, and encrypted text that hides the program’s source
code. To run a .sprun
file, the receiver can either install
SheerPower, or you can provide them with a copy of sp4gl.exe
,
renamed as desired (e.g., MyProgram.exe
). Place this renamed file
in the same folder as MyProgram.sprun
. Running
MyProgram.exe
will then execute the deployed program.
How to create a .sprun file:
The SheerPower Portable Runnable Image (.sprun
) is a deployment
format purpose-built for commercial software. Far more than simple
obfuscation, it’s a sophisticated container that provides robust source code
protection, fast startup, and secure, flexible licensing.
%include
are first merged together,
then the combined content is compressed to reduce file size.
A SPRUN file includes three main sections:
--required
block for legal text and metadata--code
block containing base64-encrypted data
All %include
files are bundled into a single in-memory buffer,
eliminating file system latency. The runtime lexer benefits from uninterrupted,
high-speed parsing. For large projects, SPRUN files often start faster than raw source code.
The --required
block is hashed into the decryption key. Changing
any character invalidates the hash, making the SPRUN file unusable.
For licensing, developers can embed custom text into the tamper-proof
--required
section using the
%compile "your text here"
directive. This can include client
names, license keys, expiration dates, or feature flags. Because it becomes
part of the hashed block, any tampering will invalidate the file—making license
enforcement secure and automatic.
The SPRUN format is a cohesive, high-performance deployment solution that protects your code, accelerates startup, and enables secure commercial distribution—fully integrated with the SheerPower Virtual Machine.
Hide Description
|
|
Enter or modify the code below, and then click on RUN |
Looking for the full power of Sheerpower?
Check out the Sheerpower website. Free to download. Free to use. |