digitalmars.D.learn - How can I create a Standalone Bundle Portable file application using
- Marcone (2/2) Jan 18 2021 How can I create a Standalone Bundle Portable file application
- Imperatorn (3/5) Jan 18 2021 Could you describe what you mean with "Bundle portable file
- Marcone (2/7) Jan 19 2021 All dependencies inside an exe file. Like Python Pyinstaller.
- evilrat (19/27) Jan 19 2021 One possible way is to use import() operator to embed file into
- Imperatorn (3/11) Jan 19 2021 Do you with "dependencies" mean "resources"? In that case, yeah
- Marcone (4/16) Jan 20 2021 I do not mean resources .res, except if is possible use files
- James Blachly (8/26) Jan 23 2021 I am afraid we are not speaking the same language.
- Marcone (2/29) Jan 24 2021 Qt5 dlls
- evilrat (11/12) Jan 24 2021 Well, you are out of luck. It is doable, but...
- Imperatorn (2/22) Jan 24 2021 Just use the dlls, redist
- Jack (3/5) Jan 23 2021 What are the dependencies that you would like to merge into
- Marcone (2/7) Jan 24 2021 Qt5 Dll's or Tk dlls.
How can I create a Standalone Bundle Portable file application using Dlang?
Jan 18 2021
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 2021
On Tuesday, 19 January 2021 at 06:25:31 UTC, Imperatorn wrote:On Monday, 18 January 2021 at 19:42:22 UTC, Marcone wrote:All dependencies inside an exe file. Like Python Pyinstaller.How can I create a Standalone Bundle Portable file application using Dlang?Could you describe what you mean with "Bundle portable file application"?
Jan 19 2021
On Tuesday, 19 January 2021 at 11:10:25 UTC, Marcone wrote:On Tuesday, 19 January 2021 at 06:25:31 UTC, Imperatorn wrote: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.On Monday, 18 January 2021 at 19:42:22 UTC, Marcone wrote:All dependencies inside an exe file. Like Python Pyinstaller.How can I create a Standalone Bundle Portable file application using Dlang?Could you describe what you mean with "Bundle portable file application"?
Jan 19 2021
On Tuesday, 19 January 2021 at 11:10:25 UTC, Marcone wrote:On Tuesday, 19 January 2021 at 06:25:31 UTC, Imperatorn wrote:Do you with "dependencies" mean "resources"? In that case, yeah import is an option someone mentioned.On Monday, 18 January 2021 at 19:42:22 UTC, Marcone wrote:All dependencies inside an exe file. Like Python Pyinstaller.How can I create a Standalone Bundle Portable file application using Dlang?Could you describe what you mean with "Bundle portable file application"?
Jan 19 2021
On Tuesday, 19 January 2021 at 14:20:06 UTC, Imperatorn wrote:On Tuesday, 19 January 2021 at 11:10:25 UTC, Marcone 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.On Tuesday, 19 January 2021 at 06:25:31 UTC, Imperatorn wrote:Do you with "dependencies" mean "resources"? In that case, yeah import is an option someone mentioned.On Monday, 18 January 2021 at 19:42:22 UTC, Marcone wrote:All dependencies inside an exe file. Like Python Pyinstaller.How can I create a Standalone Bundle Portable file application using Dlang?Could you describe what you mean with "Bundle portable file application"?
Jan 20 2021
On 1/20/21 6:50 AM, Marcone wrote:On Tuesday, 19 January 2021 at 14:20:06 UTC, Imperatorn wrote: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.On Tuesday, 19 January 2021 at 11:10:25 UTC, Marcone 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.On Tuesday, 19 January 2021 at 06:25:31 UTC, Imperatorn wrote:Do you with "dependencies" mean "resources"? In that case, yeah import is an option someone mentioned.On Monday, 18 January 2021 at 19:42:22 UTC, Marcone wrote:All dependencies inside an exe file. Like Python Pyinstaller.How can I create a Standalone Bundle Portable file application using Dlang?Could you describe what you mean with "Bundle portable file application"?
Jan 23 2021
On Saturday, 23 January 2021 at 21:26:28 UTC, James Blachly wrote:On 1/20/21 6:50 AM, Marcone wrote:Qt5 dllsOn Tuesday, 19 January 2021 at 14:20:06 UTC, Imperatorn wrote: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.On Tuesday, 19 January 2021 at 11:10:25 UTC, Marcone 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.On Tuesday, 19 January 2021 at 06:25:31 UTC, Imperatorn wrote:Do you with "dependencies" mean "resources"? In that case, yeah import is an option someone mentioned.On Monday, 18 January 2021 at 19:42:22 UTC, Marcone wrote:All dependencies inside an exe file. Like Python Pyinstaller.How can I create a Standalone Bundle Portable file application using Dlang?Could you describe what you mean with "Bundle portable file application"?
Jan 24 2021
On Sunday, 24 January 2021 at 11:44:04 UTC, Marcone wrote:Qt5 dllsWell, 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 2021
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:Just use the dlls, redistOn 1/20/21 6:50 AM, Marcone wrote:Qt5 dllsOn Tuesday, 19 January 2021 at 14:20:06 UTC, Imperatorn wrote: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.[...]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 24 2021
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 2021
On Sunday, 24 January 2021 at 02:34:15 UTC, Jack wrote:On Monday, 18 January 2021 at 19:42:22 UTC, Marcone wrote:Qt5 Dll's or Tk dlls.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 24 2021