brrd / abricotine

Markdown editor with inline preview
GNU General Public License v3.0
2.63k stars 156 forks source link

Portable Version #74

Open RoyiAvital opened 8 years ago

RoyiAvital commented 8 years ago

Hello,

Could we have a Portable Version for Windows? The current version uses the User Folder for settings and other configuration files.

What I mean by portable?

  1. No Installation
    The software is delivered as archive and can decompressed into any folder and work fro there.
  2. Local Settings
    The software keep all its data (settings, configuration, etc...) under the folder the program runs from.
  3. System Privileges
    No need for any system privileges. The software only write and read from its folder. No service used by the program is running unless the program is running.

If we can get all those, it would be amazing.

Thank You.

P. S. Is there a way to have MathJax functioning without Online Connection? Namely, will it work on computers with no Internet access? That could be a killer feature.

brrd commented 8 years ago

Normally 1 and 3 are already fulfilled, so it means the only thing to add to Abricotine is local settings, is it?

Is there a way to have MathJax functioning without Online Connection?

This is already working offline, expect in HTML export where the script is downloaded from MathJax CDN (otherwise the HTML export would weigh more than 60 Mb).

RoyiAvital commented 8 years ago

@brrd , I guess you're correct. Only to add version which writes locally instead of the User Folder.

Thank You.

P. S. I wasn't aware it works offline, wow! Could you feature to export to PDF offline?

brrd commented 8 years ago

Ok, so your request here is to add an option to store config directory under the program directory. Config directory currently contains the config.json file, dictionaries and export templates.

brrd commented 8 years ago

Could you feature to export to PDF offline?

Yes, Pandoc support is planned (see #14).

RoyiAvital commented 8 years ago

@brrd ,

Yes, if all configuration files are under the same program file things will get portable. It would be perfect.

Thank You.

RoyiAvital commented 8 years ago

Any update on this?

RoyiAvital commented 6 years ago

@brrd , Please, any option to have this?

Thank You.

brrd commented 6 years ago

Please @RoyiAvital stop asking again and again. If this issue is still open then you can guess that nobody worked on it yet. This feature is not in my priorities but I'm not the only developer here, anybody can contribute to this project.

RoyiAvital commented 6 years ago

I tried the approach given here - https://github.com/BoostIO/Boostnote/issues/344#issuecomment-318354371.
Namely, I built a batch file (Abricotine.bat) to launch Abricotine and trick it on System Variables (USERPROFILE).

@echo off
if not exist "%CD%\profile\AppData\Roaming" mkdir "%CD%\profile\appdata\Roaming"
set USERPROFILE=%CD%\profile
if not exist "%CD%\profile\notes" goto message
goto start

:message
echo PORTABLE ABRICOTINE
echo -------------------------------
echo Please enter this storage path in Boostnote:  .\profile
echo.
pause 

:start
start Abricotine.exe /I

It didn't work:

image

@brrd , You referred me here. I thought it means there are news. It seems the only needed update is let the user define the Documents folder from outside (Or if it doesn't find to let the user browse and chose).

Thank You.

RoyiAvital commented 6 years ago

OK, I made a progress. This batch file will make Abricotine launch:

@echo off
if not exist "%CD%\Profile\AppData\Roaming" mkdir "%CD%\Profile\AppData\Roaming"
if not exist "%CD%\Profile\Documents" mkdir "%CD%\Profile\Documents"
if not exist "%CD%\Profile\AppData\Local\Temp" mkdir "%CD%\Profile\AppData\Local\Temp"
set USERPROFILE=%CD%\Profile
set APPDATA=%CD%\Profile\AppData
set TEMP=%CD%\Profile\AppData\Local\Temp
set TMP=%CD%\Profile\AppData\Local\Temp
if not exist "%CD%\Profile\Documents\Abricotine" goto message
goto start

:message
echo PORTABLE ABRICOTINE
echo -------------------------------
echo Please enter this storage path in Abricotine:  .\Profile
echo.
pause 

:start
start Abricotine.exe /I
REM start Abricotine.exe

I have another problem which I'm not sure related to this. When I try to launch preferences this is what I get:

image