www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - How can I create a Standalone Bundle Portable file application using

reply Marcone <marcone email.com> writes:
How can I create a Standalone Bundle Portable file application 
using Dlang?
Jan 18
next sibling parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Monday, 18 January 2021 at 19:42:22 UTC, Marcone wrote:
 How can I create a Standalone Bundle Portable file application 
 using Dlang?
Could you describe what you mean with "Bundle portable file application"?
Jan 18
parent reply Marcone <marcone email.com> writes:
On Tuesday, 19 January 2021 at 06:25:31 UTC, Imperatorn wrote:
 On Monday, 18 January 2021 at 19:42:22 UTC, Marcone wrote:
 How can I create a Standalone Bundle Portable file application 
 using Dlang?
Could you describe what you mean with "Bundle portable file application"?
All dependencies inside an exe file. Like Python Pyinstaller.
Jan 19
next sibling parent evilrat <evilrat666 gmail.com> writes:
On Tuesday, 19 January 2021 at 11:10:25 UTC, Marcone wrote:
 On Tuesday, 19 January 2021 at 06:25:31 UTC, Imperatorn wrote:
 On Monday, 18 January 2021 at 19:42:22 UTC, Marcone wrote:
 How can I create a Standalone Bundle Portable file 
 application using Dlang?
Could you describe what you mean with "Bundle portable file application"?
All dependencies inside an exe file. Like Python Pyinstaller.
One possible way is to use import() operator to embed file into resulting artifact, then write it to disk in main or module ctor and load as usual. note however you need to tell compiler about file lookup path (-J flag) or use dub string import path respectively. // compile time enum myEmbeddedFile = import("path/to/file"); // pseudocode void main() { // write file at runtime write(cast(ubyte[]) myEmbeddedFile, "./myfile.ext"); // or use directly from memory writeln(myEmbeddedFile) } this however not possible with implicit dynamic linking, though you still can use this approach if you do use LoadLibrary/dlopen yourself.
Jan 19
prev sibling parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Tuesday, 19 January 2021 at 11:10:25 UTC, Marcone wrote:
 On Tuesday, 19 January 2021 at 06:25:31 UTC, Imperatorn wrote:
 On Monday, 18 January 2021 at 19:42:22 UTC, Marcone wrote:
 How can I create a Standalone Bundle Portable file 
 application using Dlang?
Could you describe what you mean with "Bundle portable file application"?
All dependencies inside an exe file. Like Python Pyinstaller.
Do you with "dependencies" mean "resources"? In that case, yeah import is an option someone mentioned.
Jan 19
parent reply Marcone <marcone email.com> writes:
On Tuesday, 19 January 2021 at 14:20:06 UTC, Imperatorn wrote:
 On Tuesday, 19 January 2021 at 11:10:25 UTC, Marcone wrote:
 On Tuesday, 19 January 2021 at 06:25:31 UTC, Imperatorn wrote:
 On Monday, 18 January 2021 at 19:42:22 UTC, Marcone wrote:
 How can I create a Standalone Bundle Portable file 
 application using Dlang?
Could you describe what you mean with "Bundle portable file application"?
All dependencies inside an exe file. Like Python Pyinstaller.
Do you with "dependencies" mean "resources"? In that case, yeah import is an option someone mentioned.
I do not mean resources .res, except if is possible use files inside resources without copy to hard disc and make accessible as it is in local path.
Jan 20
parent reply James Blachly <james.blachly gmail.com> writes:
On 1/20/21 6:50 AM, Marcone wrote:
 On Tuesday, 19 January 2021 at 14:20:06 UTC, Imperatorn wrote:
 On Tuesday, 19 January 2021 at 11:10:25 UTC, Marcone wrote:
 On Tuesday, 19 January 2021 at 06:25:31 UTC, Imperatorn wrote:
 On Monday, 18 January 2021 at 19:42:22 UTC, Marcone wrote:
 How can I create a Standalone Bundle Portable file application 
 using Dlang?
Could you describe what you mean with "Bundle portable file application"?
All dependencies inside an exe file. Like Python Pyinstaller.
Do you with "dependencies" mean "resources"? In that case, yeah import is an option someone mentioned.
I do not mean resources .res, except if is possible use files inside resources without copy to hard disc and make accessible as it is in local path.
I am afraid we are not speaking the same language. Because it sounds like you may not be using "dependencies" as it is conventionally understood in most programming communities, you'll need to give examples. For the record, dependencies are typically either compile-time dependencies or run-time dependencies, and in both cases I think the commonest example would be a library.
Jan 23
parent reply Marcone <marcone email.com> writes:
On Saturday, 23 January 2021 at 21:26:28 UTC, James Blachly wrote:
 On 1/20/21 6:50 AM, Marcone wrote:
 On Tuesday, 19 January 2021 at 14:20:06 UTC, Imperatorn wrote:
 On Tuesday, 19 January 2021 at 11:10:25 UTC, Marcone wrote:
 On Tuesday, 19 January 2021 at 06:25:31 UTC, Imperatorn 
 wrote:
 On Monday, 18 January 2021 at 19:42:22 UTC, Marcone wrote:
 How can I create a Standalone Bundle Portable file 
 application using Dlang?
Could you describe what you mean with "Bundle portable file application"?
All dependencies inside an exe file. Like Python Pyinstaller.
Do you with "dependencies" mean "resources"? In that case, yeah import is an option someone mentioned.
I do not mean resources .res, except if is possible use files inside resources without copy to hard disc and make accessible as it is in local path.
I am afraid we are not speaking the same language. Because it sounds like you may not be using "dependencies" as it is conventionally understood in most programming communities, you'll need to give examples. For the record, dependencies are typically either compile-time dependencies or run-time dependencies, and in both cases I think the commonest example would be a library.
Qt5 dlls
Jan 24
next sibling parent evilrat <evilrat666 gmail.com> writes:
On Sunday, 24 January 2021 at 11:44:04 UTC, Marcone wrote:

 Qt5 dlls
Well, you are out of luck. It is doable, but... Normally you would likely want to use static libraries and link them into your executable, with Qt license however it becomes problematic in pretty much any case, you still can embed them using import() and unpack to a temporary directory for manual loading without violating the license. Another problem mentioned before is implicit dynamic loading where you link with special stub .lib file for automatic loading, which is more common in C++ due to symbol name mangling, that will not work because your code won't have a chance to run main().
Jan 24
prev sibling parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Sunday, 24 January 2021 at 11:44:04 UTC, Marcone wrote:
 On Saturday, 23 January 2021 at 21:26:28 UTC, James Blachly 
 wrote:
 On 1/20/21 6:50 AM, Marcone wrote:
 On Tuesday, 19 January 2021 at 14:20:06 UTC, Imperatorn wrote:
 [...]
I do not mean resources .res, except if is possible use files inside resources without copy to hard disc and make accessible as it is in local path.
I am afraid we are not speaking the same language. Because it sounds like you may not be using "dependencies" as it is conventionally understood in most programming communities, you'll need to give examples. For the record, dependencies are typically either compile-time dependencies or run-time dependencies, and in both cases I think the commonest example would be a library.
Qt5 dlls
Just use the dlls, redist
Jan 24
prev sibling parent reply Jack <jckj33 gmail.com> writes:
On Monday, 18 January 2021 at 19:42:22 UTC, Marcone wrote:
 How can I create a Standalone Bundle Portable file application 
 using Dlang?
What are the dependencies that you would like to merge into executable? dlls? resources?
Jan 23
parent Marcone <marcone email.com> writes:
On Sunday, 24 January 2021 at 02:34:15 UTC, Jack wrote:
 On Monday, 18 January 2021 at 19:42:22 UTC, Marcone wrote:
 How can I create a Standalone Bundle Portable file application 
 using Dlang?
What are the dependencies that you would like to merge into executable? dlls? resources?
Qt5 Dll's or Tk dlls.
Jan 24