Giter Site home page Giter Site logo

Create a Portable version about unboundbible HOT 6 CLOSED

vrybant avatar vrybant commented on May 24, 2024
Create a Portable version

from unboundbible.

Comments (6)

vrybant avatar vrybant commented on May 24, 2024 2

Hi! I added portable directive to code.

{$define portable}

bc70ae4

from unboundbible.

rchastain avatar rchastain commented on May 24, 2024

Hello! I use daily UnboundBible under Windows, on a USB key. My bibles are in <UnboundBibleDirectory>/bibles/, and it works well. So, I would say that UB is already portable.

from unboundbible.

pepaulo avatar pepaulo commented on May 24, 2024

Hello! I use daily UnboundBible under Windows, on a USB key. My bibles are in <UnboundBibleDirectory>/bibles/, and it works well. So, I would say that UB is already portable.

Thank you for the answer. God bless you. I Will make a Portable Apps version If It is possible.

from unboundbible.

rchastain avatar rchastain commented on May 24, 2024

God bless you.

Amen!

I Will make a Portable Apps version If It is possible.

I think we just need to put the executable in a ZIP file or in a self-extracting archive. (I don't think that the Portable Apps system be really useful in that case).

I will take a look ASAP. (For me I use Linux.)

from unboundbible.

rchastain avatar rchastain commented on May 24, 2024

Finally I made a portable version of Unbound Bible. I hope that Vladimir doesn't mind.

You can find a package for Windows 32-bit here. I will upload a Linux version later.

The modification that I made in source code is very simple.

// unitutils.pas

function DataPath: string;
begin
  (*
  Result := GetUserDir + ApplicationName;
  *)
  Result := ExtractFilePath(ParamStr(0)) + 'data';
end;

(* ... *)

function ConfigPath: string;
begin
  (*
  {$ifdef windows} Result := LocalAppDataPath + ApplicationName;  {$endif}
  {$ifdef unix}    Result := GetUserDir + '.config/unboundbible'; {$endif}
  *)
  Result := ExtractFilePath(ParamStr(0)) + 'config';

@pepaulo
Please let me know if this is what you needed.

Best regards.

Roland

from unboundbible.

rchastain avatar rchastain commented on May 24, 2024

Good! So I think I can delete the Sourceforge page that I had created.

from unboundbible.

Related Issues (12)

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.