Git Product home page Git Product logo

Comments (14)

nikhilgupta-repos avatar nikhilgupta-repos commented on August 15, 2024 4

I was looking for a portable version and after much looking, I ended up using a switch while launching the application.
--user-data-dir=<data_path>
This way it becomes a self contained app.

from drawio-desktop.

davidjgraph avatar davidjgraph commented on August 15, 2024 1

Added https://github.com/jgraph/drawio-desktop/releases/tag/v10.7.5

from drawio-desktop.

davidjgraph avatar davidjgraph commented on August 15, 2024 1

It's the portable version out of electron-builder, https://www.electron.build/configuration/win. We're not going to customize EB, so if there's a requirement on it, the original project is the best place to search/submit.

from drawio-desktop.

RoyiAvital avatar RoyiAvital commented on August 15, 2024

@davidjgraph , This is great news.

I can see draw.io-10.7.5-windows-portable.exe. Could you explain it?
Is it an EXE or is it an installer?

Thank You.

from drawio-desktop.

davidjgraph avatar davidjgraph commented on August 15, 2024

We added https://github.com/jgraph/drawio-desktop/blob/master/electron-builder.json#L23 and that exe popped out. According the to https://www.electron.build/configuration/win it's not an installer, but I'm not a big windows user, maybe someone could check it?

from drawio-desktop.

jingyu9575 avatar jingyu9575 commented on August 15, 2024

Hi, I did not find the portable exe file in the latest release. Could you have a check?

from drawio-desktop.

davidjgraph avatar davidjgraph commented on August 15, 2024

windows-no-installer

from drawio-desktop.

jingyu9575 avatar jingyu9575 commented on August 15, 2024

@davidjgraph I see. Thank you!

I originally thought that windows-no-installer is the version with the program self contained, but still use the data in the user's home; I was expecting another portable version that has both program and data self contained, as OP says:

All settings and temporal files are self contained in the program folder.

Looks like this is not supported yet.

from drawio-desktop.

coreur avatar coreur commented on August 15, 2024

--user-data-dir=<data_path>

@nikhilgupta-repos
I add the parameter --user-data-dir=<D:\Program Files\Draw io\Data> to the end of target in the shortcut,but it does not work. Can you give more details?

from drawio-desktop.

andzi avatar andzi commented on August 15, 2024

--user-data-dir=<data_path>

@nikhilgupta-repos
I add the parameter --user-data-dir=<D:\Program Files\Draw io\Data> to the end of target in the shortcut,but it does not work. Can you give more details?

Lean Win basics. Probably you shoul put path if it contains spaces into quotes: --user-data-dir="D:\Program Files\Draw io\Data"

from drawio-desktop.

RoyiAvital avatar RoyiAvital commented on August 15, 2024

Is there a reason the --user-data-dir=<data_path> flag doesn't support relative paths?

Maybe it is related to microsoft/vscode#11735 ?

from drawio-desktop.

ariefcfa avatar ariefcfa commented on August 15, 2024

here is the steps to have full portable draw.io desktop on Windows 10 (tested and working, but I have no idea if this is correct)

  1. Download draw.io Windows No Installer
  2. run the draw.io-16.5.1-windows-no-installer.exe
  3. (it will create temporary files inside random named folder in "C:\Users\<username>\AppData\Local\Temp\<random folder name>")
  4. while draw.io still running, copy all the temporary files mentioned in step 3 to the preferred location, for example: "F:\drawio\app"
  5. copy all draw.io user data files in "C:\Users\<username>\AppData\Roaming\draw.io" for example to "F:\drawio\data"
  6. Create shortcut to draw.io.exe, in this case located in "F:\drawio\app\draw.io.exe" where:
    target: "F:\drawio\app\draw.io.exe" --user-data-dir="F:\drawio\data"
    start in: "F:\drawio\app"

this shortcut also can be pinned to taskbar

  1. redo step 4 when update draw.io. The draw.io-16.5.1-windows-no-installer.exe is safe to delete afterward

for me, the main reason doing this hassle is as anticipation if must reinstall Windows. Seems the other benefit is reduced disk write when running draw.io desktop, because draw.io will create temporary files when launched and delete them when closed (this cycle repeat). Cheers

credit to: @nikhilgupta-repos #22 (comment)

Additional notes:
To have working open file from Windows Explorer, try use https://www.nirsoft.net/utils/file_types_manager.html:

  1. Edit > New File Extension
    Extension: .drawio
    Default icon: locate the draw.io.exe
  2. Press OK
  3. Select the newly created .drawio extension
  4. Actions > New Action
    Action Name: Open
    Command-Line: "F:\drawio\app\draw.io.exe" "%1" --user-data-dir="F:\drawio\data"
  5. Press OK

from drawio-desktop.

crimsonduelist avatar crimsonduelist commented on August 15, 2024

Couldnt u just grab the no-installer release and use 7zip to extract the app64 folder for example and use a shortcut with the aforementioned flag --user-data-dir="C:\Path\To\MyFolder.
Is smthing not configured properly without running the .exe?

from drawio-desktop.

RoyiAvital avatar RoyiAvital commented on August 15, 2024

Now there is a portable version in PortableApps.
Probably the best way to have this in a portable version.

from drawio-desktop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.