Comments (14)
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.
Added https://github.com/jgraph/drawio-desktop/releases/tag/v10.7.5
from drawio-desktop.
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.
@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.
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.
Hi, I did not find the portable exe file in the latest release. Could you have a check?
from drawio-desktop.
windows-no-installer
from drawio-desktop.
@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.
--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.
--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.
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.
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)
- Download draw.io
Windows No Installer
- run the
draw.io-16.5.1-windows-no-installer.exe
- (it will create temporary files inside random named folder in
"C:\Users\<username>\AppData\Local\Temp\<random folder name>"
) - while draw.io still running, copy all the temporary files mentioned in step 3 to the preferred location, for example:
"F:\drawio\app"
- copy all draw.io user data files in
"C:\Users\<username>\AppData\Roaming\draw.io"
for example to"F:\drawio\data"
- 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
- 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:
- Edit > New File Extension
Extension:.drawio
Default icon: locate thedraw.io.exe
- Press OK
- Select the newly created
.drawio
extension - Actions > New Action
Action Name:Open
Command-Line:"F:\drawio\app\draw.io.exe" "%1" --user-data-dir="F:\drawio\data"
- Press OK
from drawio-desktop.
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.
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)
- styling of table inside text box/shape
- AppImage fails to start on Ubuntu
- Dynamic SVG export Theme using the CLI HOT 3
- Support for Native Windows ARM64 devices. HOT 1
- Complete Freeze when writing in the middle
- New connectors for systemic design maps
- The end points of a line are not aligned exactly with the grid points, when the unit is set to "Millimeters"
- Colors (default »white«/»black«) are inverted after export/print (maybe dark theme related) again
- Support of textbox scaling with preserving relative styles
- Drawio's performance hindered by huge custom libraries
- Adding freeform tool to top tool bar HOT 6
- Unintuitive behavior handling read-only files HOT 1
- I think it is necessary to limit the scope of the canvas, otherwise some misoperation will cause the program to stuck.
- Please update Mermaid support to support Math inpout and display
- Hiding the search form field is reset when re-opening the application.
- Pressing End key inside a Textbox makes Canvas to scroll in MACOS
- File->Embed -> IFrame... export, All Page flag missing or not works
- yarn.lock problems HOT 3
- Cannot Delete Scratchpad Items once added HOT 1
- Ibus-pinyin not useable in the desktop version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drawio-desktop.