Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export path issue using github workflow #144

Open
FlippantKitten opened this issue Jun 3, 2024 · 0 comments
Open

Export path issue using github workflow #144

FlippantKitten opened this issue Jun 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@FlippantKitten
Copy link

FlippantKitten commented Jun 3, 2024

When using Github workflows there is an issue with the export path.

When trying to build my Mono project. (after manually adding .net dependencies using the following code block

      - name: .NET installation
        uses: actions/setup-dotnet@v3
        with:
          dotnet-version: 6.0.x

The following error is returned on compilation:

ERROR: Prepare Template: The given export path doesn't exist.
   at: add_message (editor/export/editor_export_platform.h:182)
ERROR: Project export for preset "Windows Desktop" failed.
   at: _fs_changed (editor/editor_node.cpp:994)

The project it was ran on was in the root of the repository (so no subfolder).
This required the removal of the following line from the workflow:
cd $PROJECT_PATH
There was no mention of this in the README. My suggestion is to at least add a mention to it (along with the manual adding of the .net dependcies).

This did not fix the issue. After some further digging I managed to fix my build by changing the export path from
godot --headless --verbose --export-release "Windows Desktop" ../build/mac/$EXPORT_NAME.zip
to
godot --headless --verbose --export-release "Windows Desktop" ./build/mac/$EXPORT_NAME.zip

These steps combined have fixed my building issues for my Mono project that is set up in the root of my repository. I am unsure exactly if the project being in the root is the cause of the error. I added any information that might help narrow down the actual problem.

@Calinou Calinou added the bug Something isn't working label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants