Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Portable Version #74

Open
RoyiAvital opened this issue May 25, 2016 · 10 comments
Open

Portable Version #74

RoyiAvital opened this issue May 25, 2016 · 10 comments

Comments

@RoyiAvital
Copy link

RoyiAvital commented May 25, 2016

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
Copy link
Owner

brrd commented May 25, 2016

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
Copy link
Author

@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
Copy link
Owner

brrd commented May 26, 2016

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 brrd changed the title Portable Windows Version Option to store config directory under the program directory May 26, 2016
@brrd
Copy link
Owner

brrd commented May 26, 2016

Could you feature to export to PDF offline?

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

@RoyiAvital
Copy link
Author

@brrd ,

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

Thank You.

@RoyiAvital RoyiAvital changed the title Option to store config directory under the program directory Portable Version Aug 13, 2016
@RoyiAvital
Copy link
Author

Any update on this?

@RoyiAvital
Copy link
Author

@brrd , Please, any option to have this?

Thank You.

@brrd
Copy link
Owner

brrd commented Feb 23, 2018

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
Copy link
Author

RoyiAvital commented Feb 23, 2018

I tried the approach given here - BoostIO/BoostNote-Legacy#344 (comment).
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
Copy link
Author

RoyiAvital commented Feb 23, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants