Relative export path

Hi, I’m working on a group project and I want to upload the files to a git repository. The problem is that the export paths have local addresses on my laptop. Is there a way to establish these paths relative to the .spj file within the repository?
What is the correct way to have the project in a repository?

What do you want to achieve?

Set the “Project Export Root” and/or “UI Files Export Path” of .sll file relative to the .spj file

What have you tried so far?

I tried to set “Project Export Root” to “…/…/” and “UI Files Export Path” to “…/…/components/ui” but I get a “Invalid Export Path” error.

Screenshot or video

Others

  • SquareLine Studio version: v1.3.3
  • Operating system: Windows 11
  • Target hardware: ESP32
3 Likes

+1
Allowing relative paths would make it much easier to integrate with git.

1 Like

Yes, this would be great.

I am glad they optimized the spj file in 1.3.3 which reduced the size or my project from 86MB to 10MB.

1 Like

In the project settings, you can only specify a local path for the export. We will think about how to specify a relative path.

1 Like

Hello!
I just read the v1.3.4 changelog and it says

Ability to set a relative path for export paths in project settings.

However, I am still unable to set the relative path in my project. I tried the same project and route as my previous answer in this thread.
When I run “Export->Export UI Files” a File Explorer appears asking me to set the Export folder.
How should I set the paths?

Hi,

Project relative export paths:
You can use triple dots “…” as a path in project settings export paths. The 3 dots represents the current directory of your project.
This helps, if you work on same project on multiple computers with different path structures

Example:
Your project file in C:\work\Company\WeatherStation\design\weatherstation.spj
You made a Visual Studio template project in to C:\work\Company\WeatherStation\PCbuild\weatherstation.sln folder.

In default, your project export root will be:
C:\Work\Company\WeatherStation\PCbuild\weatherstation

and your UI export path will be:
C:\Work\Company\WeatherStation\PCbuild\weatherstation./LVGL.Simulator/ui

You can exchange these absolute paths to relatives:
…..\PCbuild\weatherstation
…..\PCbuild\weatherstation./LVGL.Simulator/ui

2 Likes

Thank you so much! It worked!