Skip to content

Repository files navigation

sh

Builds single static file OpenAF executables for Linux and Mac. These single files can be copied and used, without any installation or privilege access (e.g. power user or root), to run OpenAF scripts and oJobs.

To download and use (curl, bash and tar are required):

curl https://openaf.io/getStatic.sh | sh

If you don't have curl you can run the following command directly using only bash:

/bin/bash -c "exec 3<>/dev/tcp/ojob.io/80 && echo -e \"GET /getStatic.sh HTTP/1.1\nHost: ojob.io\nUser-Agent: curl\nConnection: close\n\n\" >&3 && cat <&3"| sed '1,/connection: close/d'| tail -n +2 > getStatic.sh && sh getStatic.sh && rm getStatic.sh

To download directly for a specific distribution, OS and/or architecture choose one of the following available builds:

OpenAF distributionOSArchitectureLink
stableLinuxx86_64https://openaf.io/oaf-linux-x86_64
stableLinuxaarch64https://openaf.io/oaf-linux-aarch64
stableAlpine Linuxx86_64https://openaf.io/oaf-alpine-x86_64
stableAlpine Linuxaarch64https://openaf.io/oaf-alpine-aarch64
stableMacx64_64https://openaf.io/oaf-mac-x86_64
stableMacaarch64https://openaf.io/oaf-mac-aarch64
nightlyLinuxx86_64https://openaf.io/nightly/oaf-linux-x86_64
nightlyLinuxaarch64https://openaf.io/nightly/oaf-linux-aarch64
nightlyAlpine Linuxx86_64https://openaf.io/nightly/oaf-alpine-x86_64
nightlyAlpine Linuxaarch64https://openaf.io/nightly/oaf-alpine-aarch64
nightlyMacx64_64https://openaf.io/nightly/oaf-mac-x86_64
nightlyMacaarch64https://openaf.io/nightly/oaf-mac-aarch64
t8Linuxx86_64https://openaf.io/t8/oaf-linux-x86_64
t8Linuxaarch64https://openaf.io/t8/oaf-linux-aarch64
t8Alpine Linuxx86_64https://openaf.io/t8/oaf-alpine-x86_64
t8Alpine Linuxaarch64https://openaf.io/t8/oaf-alpine-aarch64
t8Macx64_64https://openaf.io/t8/oaf-mac-x86_64
t8Macaarch64https://openaf.io/t8/oaf-mac-aarch64

Note: currently all files are built with Java Runtime Environment version 21 for each of the corresponding architectures.

All extra files (for example, opacks) are kept in temporary folders. To ensure that they get loaded properly just use the OpenAF function includeOPack or fill the corresponding oJob "opacks" section. For "air-gap" environments (without Internet) you just need to place the necessary .opack files in the same folder from where you are running you script or oJob

Manual usage

Linux Intel

# Download the correct binary file
wget https://openaf.io/oaf-linux-x86_64
# On the target system execute one first time to create the necessary symlinks
chmod u+x oaf-linux-x86_64
./oaf-linux-x86_64
# It will reply 'Please use the created symlinks: oaf, ojob, opack, oafc, oaf-sb or ojob-sb'# And it's running
./oaf -c 'print(123)'

Linux ARM

# Download the correct binary file
wget https://openaf.io/oaf-linux-aarch64
# On the target system execute one first time to create the necessary symlinks
chmod u+x oaf-linux-aarch64
./oaf-linux-aarch64
# It will reply 'Please use the created symlinks: oaf, ojob, opack, oafc, oaf-sb or ojob-sb'# And it's running
./oaf -c 'print(123)'

Mac Intel

# Download the correct binary file
wget https://openaf.io/oaf-mac-x86_64
# On the target system execute one first time to create the necessary symlinks
chmod u+x oaf-mac-x86_64
./oaf-mac-x86_64
# It will reply 'Please use the created symlinks: oaf, ojob, opack, oafc, oaf-sb or ojob-sb'# And it's running
./oaf -c 'print(123)'

Mac ARM

# Download the correct binary file
wget https://openaf.io/oaf-mac-aarch64
# On the target system execute one first time to create the necessary symlinks
chmod u+x oaf-mac-aarch64
./oaf-mac-aarch64
# It will reply 'Please use the created symlinks: oaf, ojob, opack, oafc, oaf-sb or ojob-sb'# And it's running
./oaf -c 'print(123)'

About

Static Linux and Mac OpenAF single file executables builder

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors