Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

The Macintosh is Xerox technology at its best.


devel / comp.lang.python / Re: mac app from a python script?

SubjectAuthor
o Re: mac app from a python script?Dan Stromberg

1
Re: mac app from a python script?

<mailman.223.1646609396.2329.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17413&group=comp.lang.python#17413

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: drsali...@gmail.com (Dan Stromberg)
Newsgroups: comp.lang.python
Subject: Re: mac app from a python script?
Date: Sun, 6 Mar 2022 15:29:42 -0800
Lines: 29
Message-ID: <mailman.223.1646609396.2329.python-list@python.org>
References: <CAGGBd_pQ9MWTPYPLBXzRDp32zFCh06d+9GQ47vxnPp6KFuqVMg@mail.gmail.com>
<CAGGBd_qHbZ8y69Ztus-OphY5Cr4tyBZQubDupiSWy+QqwvH-tg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de 2Uar8nMR1+LBSPoBLCN6sAmJbyIZw0J3rO7bz9+MWl7Q==
Return-Path: <drsalists@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=pLA24YQa;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.002
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '2022': 0.05;
'subject:python': 0.06; 'linux,': 0.07; 'sun,': 0.07; 'dan': 0.09;
'linux': 0.09; 'macos': 0.09; 'macos,': 0.09; 'subject:script':
0.09; 'that.': 0.15; 'executable': 0.16; 'from:addr:drsalists':
0.16; 'from:name:dan stromberg': 0.16; 'subject:app': 0.16;
'turns': 0.16; 'wrote:': 0.16; 'python': 0.16; 'bug': 0.19;
'to:addr:python-list': 0.20; 'command': 0.23; "i'd": 0.24; 'skip:-
10': 0.25; 'creating': 0.27; 'goes': 0.28; 'seem': 0.31;
'putting': 0.31; 'message-id:@mail.gmail.com': 0.32; 'but': 0.32;
'script': 0.33; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'running': 0.34; 'fine': 0.35;
'runs': 0.35; 'from:addr:gmail.com': 0.35; 'subject:from': 0.37;
'really': 0.37; 'using': 0.37; "it's": 0.37; 'received:209.85':
0.37; 'way': 0.38; 'put': 0.38; 'received:209': 0.39; 'changes':
0.39; 'single': 0.39; 'something': 0.40; 'want': 0.40; 'top':
0.65; 'perfectly': 0.69; 'skip:/ 10': 0.69; 'care': 0.71; 'line,':
0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=Kejed+Sj1w+Aw7J1U1ceZ9oOhclyLxl6hOwm9VyakVU=;
b=pLA24YQatDXOCMNYunwV3gzw0vIwBfR6faWotfZyx7Twp0DaJB6XzHMfqFG+hfBcXB
IGJzzFiimVEdyvmrRKSuTIxcayYv8Hyp8yEqMMilVrHMk3Hot4GhA6u+LepC5UmJW0sZ
tVOdVToqsHZTIppLkhDHkYR5G+Kw18/dgJNZfeBJi/DNMQ49BcUg8gnp3bo/1vt9Ai8B
9DD5ImTWF5bQEnMC5UaV4wmRs2bkuB1meCDOPmpclIyRbc+gCBKBmm1wrpmnSnRYEAgt
wP0lu6yTNe1DsSCoC0CT3m5k0giw0UsRtug9vhZ6gc/VUmbnkJha1ZPsyRSiV1H46iPl
YKlw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=Kejed+Sj1w+Aw7J1U1ceZ9oOhclyLxl6hOwm9VyakVU=;
b=k6ogoxM0SS0nht77i9t/BhMFi/AS3qTq3wN/05kOYi8BwkKzANpBbhirM2cXa1sbHa
D60ceTiwcprXsUexfou4OkAFowgVUvajVE2B2/S3ftn2C9A03mhtP7HX6UYfcVwOkQV+
RDHL87U2cD8YtALb++OCrGK1HQ8zgHKuEcQLcRKetOAvapExuAtV/wLxRM+uCgvQOmgi
kPqv/jC8QZ1Sj8u47kImXj2sdQDP6ZMVkYHWVn69qJ/YaLniHP8TtCWWp8Nb0Da/caij
neCpZkrpM/COnTa0oreZjsIcT2GoF2eggLhLjffgDOHKsjw0ce4DwCbZi846r7QC9BK7
xj3Q==
X-Gm-Message-State: AOAM5321dDW4xJZDvx61Sonb+JigeVA4sjVTXBP3gomT0ELlhsV1v1p8
yd9Sws5AwAWGISHWzyDNjW0tTq0j0lB+qxmCSic28XW55Es=
X-Google-Smtp-Source: ABdhPJzoHSjl5KjRWBeEMQ/BsQTrj0NelEH/q+K8d4TFkHIBiIKC0I/55BdnBTjIhfY0amizF81GGUohRXXYxE9AIMs=
X-Received: by 2002:a1f:6744:0:b0:31f:4e5:5149 with SMTP id
m4-20020a1f6744000000b0031f04e55149mr3106411vki.38.1646609393193; Sun, 06 Mar
2022 15:29:53 -0800 (PST)
In-Reply-To: <CAGGBd_pQ9MWTPYPLBXzRDp32zFCh06d+9GQ47vxnPp6KFuqVMg@mail.gmail.com>
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAGGBd_qHbZ8y69Ztus-OphY5Cr4tyBZQubDupiSWy+QqwvH-tg@mail.gmail.com>
X-Mailman-Original-References: <CAGGBd_pQ9MWTPYPLBXzRDp32zFCh06d+9GQ47vxnPp6KFuqVMg@mail.gmail.com>
 by: Dan Stromberg - Sun, 6 Mar 2022 23:29 UTC

On Sun, Jan 23, 2022 at 9:59 AM Dan Stromberg <drsalists@gmail.com> wrote:

>
> Hi folks.
>
> I have a Python 3 script (built on top of gi.respository.Gtk) that runs on
> Linux and macOS 11.5. It's at
> https://stromberg.dnsalias.org/~strombrg/hcm/ if you're curious.
>
> It works the way I want on Linux, but on macOS I seem to have to start it
> from the command line, like:
> hcm --gui
> ...because I don't know how to create a macOS "app" that goes under
> /Applications.
>
> I don't really care about having a single executable on macOS, and I don't
> really care about creating a .dmg or .pkg file. I'd be perfectly happy just
> running "make install" and putting a #!'d script under /Applications with
> appropriate metadata - but if it's easier to do a single executable, .dmg
> or .pkg, I'd be fine with that.
>

It turns out that using something called "appify" does this well.

I found it on a gist I believe.

I liked it so much that I adopted it and put it at
https://stromberg.dnsalias.org/~strombrg/mactools/ , with a few style
changes and small bug fixes.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor