Table of Contents
Omniflow is a tool to create updater files, for EnVRonment
You will need to install some tools to run the project.
- You will need infisical-cli and an account on https://infisical.envronment.com, to fetch environment variables.
- You will also need Docker and docker-compose to run the database and the cache.
- You will need to install Git to clone the project.
- You will need to install Intellij Idea to edit the project.
- You will need to install Java v21 to run the project.
Clone the project and install the dependencies.
git clone [email protected]:StreetLess/OmniFlow.git
cd OmniFlow
./gradlew build --refresh-dependencies
No documentation available yet.
You will need to login to https://infisical.envronment.com and fetch the environment variables.
infisical login
# Choose self-hosted, type the url of the server
To fetch the environment variables, run the following command:
# --env is optional, by default it will fetch the dev environment. If you are on main or release/* branch it will fetch production environment.
infisical export --env dev > .env
# If you want more information about the environment variables run the following command to generate the example file
infisical secrets generate-example-env > .env.sample
You can run the project with the following command:
# You'll need to pass the cli arguments in --args=""
./gradlew run --args=""
A CLI is available to run some commands.
You will need to configure the .env
.
You can run it with the following command:
usage: [-h] [-d DIRECTORY] -v VERSION --editor [--new] [--clear] [--release]
required arguments:
-v VERSION, The version to push
--version VERSION
--editor, --simulator The project type
optional arguments:
-h, --help show this help message and exit
-d DIRECTORY, The directory to push
--directory DIRECTORY
--new, --temporary The mode to use
--clear, -c Clear directory version before uploading
--release, --debug The build type
To make a release from scratch, you need to make a temporary version, and then a release
# Push the content of /path/to/directory to the temporary bucket, for "editor" project type, with version 1.0.0, as a release type
java -jar OmniFlow.jar --editor --temporary --version 1.0.0 --directory /path/to/directory --release
# Make the release from the temporary bucket to the release bucket
java -jar OmniFlow.jar --editor --version 1.0.0 --new --release
When you run the jar, you specify:
--editor
or--simulator
to specify the project type (mandatory)--version
to specify the version (mandatory)--directory
to specify the directory to push (only when--new
is not specified)--new
to specify that you want to create a new version (optional), you need to make a temporary version before--clear
to specify that you want to clear the directory version before uploading (optional) (only when--new
is not specified)--release
or--debug
to specify the build type (optional) (default:--release)
If you need to build the project:
./gradlew shadowJar
ls -L /build/libs
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
Read the contributing guide to learn how to contribute to the project.
Distributed under the License. See LICENSE for more information.
Alwyn974 |