#3201: Create Windows package (Py3-GTK3)
------------------------------+---------------------
  Reporter:  Cas              |      Owner:
      Type:  feature-request  |     Status:  new
  Priority:  major            |  Milestone:  2.1.x
 Component:  Packaging        |    Version:  develop
Resolution:                   |   Keywords:
------------------------------+---------------------

Comment (by mhertz):

 @tobbez, I accidentially asked you a question in wrong ticket, sorry, and
 I repost it here because you're not in the Cc list of that other ticket:

 ---

 Do the code you posted for .5 work for you locally?

 I used my deluge2 from Cas's install-instructions and because of admin-
 rights needed, I copied deluged.exe into my win10 VM's user(fooba)
 Downloads folder and changed your code to match my system and then runned
 it and it did change the file I could see from the file-properties, and
 then I overwrote deluged.exe from Downloads and back to correct place
 again(I did backup it first), but the result is same as before and I can
 see python and not pythonw.exe runs deluged.exe still and doesn't
 background itself.

 I apologize in advance if messing up your instructions, as that is very
 likely ;)
 {{{
 # replace PYTHONDIR with the root of your Python installation
 with open(r'C:\Program Files\Python36\Lib\site-
 packages\pip\_vendor\distlib\w64.exe', 'rb') as f:
     launcher = f.read()
 with open(r'C:\Users\fooba\Downloads\deluged.exe', 'rb') as f:
     d = f.read()
 with open(r'C:\Users\fooba\Downloads\deluged.exe', 'wb') as f:
     f.write(launcher)
     f.write(d[d.rindex(b'#!'):])
 }}}

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3201#comment:36>
Deluge <https://deluge-torrent.org/>
Deluge Project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/deluge-dev/057.54355a59d6e6e0ced8faf5a874dbabfd%40deluge-torrent.org.

Reply via email to