From 8cb8a7f6d16f3c3a6e973ac1d8e79101065d4d96 Mon Sep 17 00:00:00 2001 From: botanicvelious Date: Tue, 17 Jan 2023 22:28:54 -0700 Subject: [PATCH 1/3] Add documentation on using env variables --- .../self-host/hardcode-settings/_index.en.md | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 content/self-host/hardcode-settings/_index.en.md diff --git a/content/self-host/hardcode-settings/_index.en.md b/content/self-host/hardcode-settings/_index.en.md new file mode 100644 index 00000000..ffaec1de --- /dev/null +++ b/content/self-host/hardcode-settings/_index.en.md @@ -0,0 +1,32 @@ +--- +title: Hardcoding Custom Settings +weight: 10 +--- + +## Custom Server +{{% notice note %}} +To hardcode custom server settings into your executables you must [build](/docs/en/dev/build/) the client youself. +{{% /notice %}} +{{% notice note %}} +**If you set eaither of these values without setting the other your executable will not work!** +{{% /notice %}} + +You can set the following enviroment variables on your os and rustdesk will use those variables when compiling your client rather than the default rustdesk.com servers. + +If you do not know how to set an enviroment variable on your system you should be able to find documentation for your os online that will explain this. + +#### RENDEZVOUS_SERVER +This variable should be set to your server url. + +This should be a string such as +``` +rustdesk.my-domain.com +``` + +#### RS_PUB_KEY_VAL +This variable will be your public key, more information on the key is aviable [Here](/docs/en/self-host/install/#key) + +This should be a string such as +``` +OeVuKk5nlHiXp+APNn0Y3pC1Iwpwn44JGqrQCsWqmBw= +``` From de403ffa2c72b6ebc4d7a19a8f522a129222b7b2 Mon Sep 17 00:00:00 2001 From: botanicvelious Date: Wed, 18 Jan 2023 01:10:50 -0700 Subject: [PATCH 2/3] change to RS_PUB_KEY --- content/self-host/hardcode-settings/_index.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/self-host/hardcode-settings/_index.en.md b/content/self-host/hardcode-settings/_index.en.md index ffaec1de..d0a0c24d 100644 --- a/content/self-host/hardcode-settings/_index.en.md +++ b/content/self-host/hardcode-settings/_index.en.md @@ -23,7 +23,7 @@ This should be a string such as rustdesk.my-domain.com ``` -#### RS_PUB_KEY_VAL +#### RS_PUB_KEY This variable will be your public key, more information on the key is aviable [Here](/docs/en/self-host/install/#key) This should be a string such as From 0ec23a6c3fb7a15ad4d3c09a7c0f13dbc3f84b0f Mon Sep 17 00:00:00 2001 From: botanicvelious Date: Wed, 18 Jan 2023 01:23:36 -0700 Subject: [PATCH 3/3] Add github workflows build instructions --- content/dev/build/all/_index.en.md | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 content/dev/build/all/_index.en.md diff --git a/content/dev/build/all/_index.en.md b/content/dev/build/all/_index.en.md new file mode 100644 index 00000000..bc6200ac --- /dev/null +++ b/content/dev/build/all/_index.en.md @@ -0,0 +1,46 @@ +--- +title: Build all using Github Actions +weight: 22 +--- + +{{% notice note %}} +This build uses github actions, you will need a github account, also building can be slow, however this requires no development enviroment. +{{% /notice %}} + +## Make a Fork + +Goto https://github.com/rustdesk/rustdesk/fork and click "create fork" + +## Set your enviroment variables (Optional) + +{{% notice note %}} +You only need to do this if you want to change the default server and public key. +{{% /notice %}} + +On your fork you just created goto settings -> Secrets and Variables -> Actions + +Click New repository Secret for the name put RENDEZVOUS_SERVER for the secret put your servers name/ip address. + +Click Add Secret + +Click New repository Secret for the name put RS_PUB_KEY for the secret put your servers public key. + +Click Add Secret + +## Enable workflows + +On your fork you just created goto actions and enable workflows. + +Once workflows are enabled you can click "Flutter Nightly Build" on the left then click "Run workflow" on the right to build the rustdesk clients for all of the supported platforms. + +## Enable upload permissions for workflows + +On your fork you just created goto settings -> Actions -> General + +Scroll down and under Workflow permissions enable "Read and Write permissions. + +## Download your built packages + +After the workflow is done running you can download the packages it built. + +Goto the main page of your fork, on the right click releases. The packages you just built will show up under nightly.