git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Application Distribution using Embeddable Zip on Windows


Well , I didn't know that single scripts can be used to associate
filetypes. I will test it out.

Currently I'm doing an experiment with Embeddable distribution , Writing a
launcher with rust. I have no idea what's the efficient or correct way to
do it. Let's hope for the best.
I think they should've explained how to write an Launcher or even an
example code in the docs.

I will have your solution as an backup option.


~Palash Bauri

On Wed, 17 Jun 2020, 8:30 pm Shakil Khan, <shakilk1729 at gmail.com> wrote:

> May be I have not understood your requirement.
> But let me put what I understood and how can it be achieved.
>
> Requirement:-
> There is a file in system called as  abc.pal, this file when double
> clicked produces a file called as abc.parsed
>
> Solution:
> 1) Pack the MSI and Python Binary in MSI
> 2) Unpack and install the MSI and as part of it install the Python in
> standard Path and update the PATH
> 3) Associate the file type *.pal to open with your application say
> Palash_parser.py
> 4) When the file abc.pal is double-clicked the associated application is
> Palash_parser.py.
> The application Palash_parser.py can run without any issues as the Python
> is already installed and in Path and produces abc.parsed
>
> Sorry if this is not what you intended.
> Good luck then.
>
> $hakil
>
> On Jun 17, 2020, at 7:48 AM, Palash Bauri <palashbauri1 at gmail.com> wrote:
>
> Well, that crossed my mind earlier, but as my program is a text parser and
> has it's own input & output source filetype, it should have those filetypes
> associated with the program. Just using an MSI installer will not do that
> trick.
>
>
> ~Palash Bauri
>
> On Wed, 17 Jun 2020, 7:18 pm Shakil Khan, <shakilk1729 at gmail.com> wrote:
>
>> How about writing a windows MSI installer and wrapping Python and your
>> script together in the MSI.
>>
>> $hakil
>>
>> > On Jun 17, 2020, at 6:44 AM, Palash Bauri <palashbauri1 at gmail.com>
>> wrote:
>> >
>> > Well , in some cases that is true, but in my program's case that's not
>> > true as it's targetting not-so-much tech savvy users. I would like to
>> > make an compact plug-and-play solution.
>> >
>> > And , I think using Python Embeddable zip and a custom launcher will
>> > be more suitable for my program.
>> >
>> > On 6/17/20, Chris Angelico <rosuav at gmail.com> wrote:
>> >> On Wed, Jun 17, 2020 at 9:09 PM Palash Bauri <palashbauri1 at gmail.com>
>> >> wrote:
>> >>>
>> >>>> Try creating a .pyz file using the zipapp module:
>> >>>
>> >>>> https://docs.python.org/3/library/zipapp.html
>> >>>
>> >>>> It should 'just work', out of the box.
>> >>>
>> >>>> ChrisA
>> >>>
>> >>> But I will still need to build a launcher or put a Python Interpreter
>> >>> at users' path in order to run .pyz files.
>> >>
>> >> Putting a Python interpreter onto the users' systems is the job of
>> >> python.org and/or the Windows app store. You should just have to worry
>> >> about your own app.
>> >>
>> >> ChrisA
>> >> --
>> >> https://mail.python.org/mailman/listinfo/python-list
>> >>
>> > --
>> > https://mail.python.org/mailman/listinfo/python-list
>>
>>
>