How to Use a Forked Repository as the Build Source for RustDesk #85

Open
opened 2025-05-27 06:36:09 +08:00 by empso11 · 6 comments
empso11 commented 2025-05-27 06:36:09 +08:00 (Migrated from github.com)

I have forked the official repository: https://github.com/rustdesk/rustdesk. Now, I want to use the code from my forked repository as the source during the build process, instead of using the official repository's code. I have reviewed the project's source code but couldn't find where to specify the source repository. Could you please guide me on how to switch to using my forked repository as the code source?

Additionally, I encountered another issue: I am using a self-hosted rdgen, and while the GitHub Actions workflow shows a successful build, clicking on the details reveals the following message:

build rustdesk android apk aarch64-linux-android
{"message":"Invalid URL","data":"{"uuid": "0c13bd38-44ce-4307-9bb2-b050c1bd4777", "status": "Success"}"}

Could you advise where I need to make replacements or configurations to resolve this issue? I hope you can help me. Thank you!

I have forked the official repository: https://github.com/rustdesk/rustdesk. Now, I want to use the code from my forked repository as the source during the build process, instead of using the official repository's code. I have reviewed the project's source code but couldn't find where to specify the source repository. Could you please guide me on how to switch to using my forked repository as the code source? Additionally, I encountered another issue: I am using a self-hosted rdgen, and while the GitHub Actions workflow shows a successful build, clicking on the details reveals the following message: build rustdesk android apk aarch64-linux-android {"message":"Invalid URL","data":"{\"uuid\": \"0c13bd38-44ce-4307-9bb2-b050c1bd4777\", \"status\": \"Success\"}"} Could you advise where I need to make replacements or configurations to resolve this issue? I hope you can help me. Thank you!
bryangerlach commented 2025-05-27 08:13:37 +08:00 (Migrated from github.com)

You will need to edit the github workflow files (bridge.yml and generator-*.yml files), where it checks out the source code. Just look for any code that looks like this:

        if: ${{ env.VERSION != 'master' }}
        uses: actions/checkout@v4
        with:
          repository: rustdesk/rustdesk
          ref: refs/tags/${{ env.VERSION }}
          submodules: recursive```

and change rustdesk/rustdesk to your repo, like empso11/rustdesk or whatever.

With the message "Invalid URL" it would suggest that you have not set up GENURL correctly in the github actions secrets, or that your server is not reachable from the internet, or possibly that a firewall or other setting is blocking github from sending to your server.

What kind of changes do you have within your rustdesk repo? Is it something that could be added to the generator?
You will need to edit the github workflow files (bridge.yml and generator-*.yml files), where it checks out the source code. Just look for any code that looks like this: ```- name: Checkout source code if: ${{ env.VERSION != 'master' }} uses: actions/checkout@v4 with: repository: rustdesk/rustdesk ref: refs/tags/${{ env.VERSION }} submodules: recursive``` and change rustdesk/rustdesk to your repo, like empso11/rustdesk or whatever. With the message "Invalid URL" it would suggest that you have not set up GENURL correctly in the github actions secrets, or that your server is not reachable from the internet, or possibly that a firewall or other setting is blocking github from sending to your server. What kind of changes do you have within your rustdesk repo? Is it something that could be added to the generator?
empso11 commented 2025-05-27 08:31:30 +08:00 (Migrated from github.com)

I followed your method and solved all the issues. GENURL needs to include http:// or https:// and cannot just be the domain name. Thank you so much!

I followed your method and solved all the issues. GENURL needs to include http:// or https:// and cannot just be the domain name. Thank you so much!
cjwlrs commented 2025-06-04 16:06:18 +08:00 (Migrated from github.com)

您需要编辑 github 工作流程文件(bridge.yml 和 generator-*.yml 文件),并在其中签出源代码。只需查找如下所示的任何代码:

        if: ${{ env.VERSION != 'master' }}
        uses: actions/checkout@v4
        with:
          repository: rustdesk/rustdesk
          ref: refs/tags/${{ env.VERSION }}
          submodules: recursive```

and change rustdesk/rustdesk to your repo, like empso11/rustdesk or whatever.

With the message "Invalid URL" it would suggest that you have not set up GENURL correctly in the github actions secrets, or that your server is not reachable from the internet, or possibly that a firewall or other setting is blocking github from sending to your server.

What kind of changes do you have within your rustdesk repo? Is it something that could be added to the generator?

Does the Docker image for rdgen support using specific branches? If so, how can I configure it?

> 您需要编辑 github 工作流程文件(bridge.yml 和 generator-*.yml 文件),并在其中签出源代码。只需查找如下所示的任何代码: > > ``` > if: ${{ env.VERSION != 'master' }} > uses: actions/checkout@v4 > with: > repository: rustdesk/rustdesk > ref: refs/tags/${{ env.VERSION }} > submodules: recursive``` > > and change rustdesk/rustdesk to your repo, like empso11/rustdesk or whatever. > > With the message "Invalid URL" it would suggest that you have not set up GENURL correctly in the github actions secrets, or that your server is not reachable from the internet, or possibly that a firewall or other setting is blocking github from sending to your server. > > What kind of changes do you have within your rustdesk repo? Is it something that could be added to the generator? > ``` Does the Docker image for rdgen support using specific branches? If so, how can I configure it?
bryangerlach commented 2025-06-07 00:06:21 +08:00 (Migrated from github.com)

The docker image does not support using specific forks. It will always use rustdesk. What type of changes are you guys making to the source code?

The docker image does not support using specific forks. It will always use rustdesk. What type of changes are you guys making to the source code?
Gerfy1 commented 2025-10-21 19:19:41 +08:00 (Migrated from github.com)

For those who don't have a domain and just want to host it locally to generate the client, how can the GENURL be defined?

For those who don't have a domain and just want to host it locally to generate the client, how can the GENURL be defined?
StrikerRUS commented 2025-11-07 19:33:55 +08:00 (Migrated from github.com)

What type of changes are you guys making to the source code?

For example, this one to make it work with single endpoint WebSocket and IP address (currently single endpoint can be used only with domain name).

https://github.com/lejianwen/rustdesk-api/issues/454#issuecomment-3497242157

UPD: seems that quite small changes can be made after cloning original repo with the help of patches: https://github.com/bryangerlach/rdgen/tree/master/.github/patches. Will try this.

> What type of changes are you guys making to the source code? For example, this one to make it work with single endpoint WebSocket and IP address (currently single endpoint can be used only with domain name). https://github.com/lejianwen/rustdesk-api/issues/454#issuecomment-3497242157 **UPD:** seems that quite small changes can be made after cloning original repo with the help of patches: https://github.com/bryangerlach/rdgen/tree/master/.github/patches. Will try this.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 3344/rdgen#85