Jump to page: 1 2
Thread overview
How can I create a Standalone Bundle Portable file application using Dlang?
Jan 18, 2021
Marcone
Jan 19, 2021
Imperatorn
Jan 19, 2021
Marcone
Jan 19, 2021
evilrat
Jan 19, 2021
Imperatorn
Jan 20, 2021
Marcone
Jan 23, 2021
James Blachly
Jan 24, 2021
Marcone
Jan 24, 2021
evilrat
Jan 24, 2021
Imperatorn
Jan 24, 2021
Jack
Jan 24, 2021
Marcone
January 18, 2021
How can I create a Standalone Bundle Portable file application using Dlang?
January 19, 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"?
January 19, 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:
>> 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.
January 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:
>> 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.
January 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:
>> 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.
January 20, 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:
>> 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.
January 23, 2021
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.
January 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?
January 24, 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:
>> 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.
January 24, 2021
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
« First   ‹ Prev
1 2