Build as appimage
This commit is contained in:
parent
df6f95495e
commit
f2351217f7
4 changed files with 61 additions and 2 deletions
21
appimage/wireguide.appdata.xml
Normal file
21
appimage/wireguide.appdata.xml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<component type="desktop-application">
|
||||||
|
<id>wireguide</id>
|
||||||
|
<metadata_license>GPL-3.0</metadata_license>
|
||||||
|
<project_license>GPL-3.0</project_license>
|
||||||
|
<name>WireGUIde</name>
|
||||||
|
<summary>WireGUIde is a GUI for WireGuard</summary>
|
||||||
|
<description>
|
||||||
|
<p>WireGUIde is a GUI for WireGuard that uses dbus to talk to NetworkManager. WireGUIde is free and open source software.</p>
|
||||||
|
</description>
|
||||||
|
<launchable type="desktop-id">wireguide.desktop</launchable>
|
||||||
|
<url type="homepage">https://github.com/mickenordin/wireguide</url>
|
||||||
|
<screenshots>
|
||||||
|
<screenshot type="default">
|
||||||
|
<image>https://github.com/mickenordin/wireguide</image>
|
||||||
|
</screenshot>
|
||||||
|
</screenshots>
|
||||||
|
<provides>
|
||||||
|
<id>wireguide.desktop</id>
|
||||||
|
</provides>
|
||||||
|
</component>
|
37
appimage/wireguide.yml
Normal file
37
appimage/wireguide.yml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
app: ke.mic.wireguide
|
||||||
|
ingredients:
|
||||||
|
dist: groovy
|
||||||
|
sources:
|
||||||
|
- deb http://us.archive.ubuntu.com/ubuntu/ groovy groovy-updates groovy-security main universe
|
||||||
|
- deb http://us.archive.ubuntu.com/ubuntu/ groovy-updates main universe
|
||||||
|
- deb http://us.archive.ubuntu.com/ubuntu/ groovy-security main universe
|
||||||
|
script:
|
||||||
|
- wget -c https://github.com/mickenordin/wireguide/blob/main/wireguide/logo.png -O ke.mic.wireguide.png
|
||||||
|
- wget -c https://github.com/mickenordin/wireguide/blob/main/appimage/wireguide.appdata.xml -O wireguide.appdata.xml
|
||||||
|
packages:
|
||||||
|
- python3-pip
|
||||||
|
- python3-gi
|
||||||
|
- python3-wxgtk4.0
|
||||||
|
- python3-sip
|
||||||
|
- libnm0
|
||||||
|
- gir1.2-nm-1.0
|
||||||
|
script:
|
||||||
|
- ./usr/bin/pip3 install WireGUIde
|
||||||
|
- cp ../ke.mic.wireguide.png ./usr/share/icons/hicolor/256x256/
|
||||||
|
- cp ../ke.mic.wireguide.png .
|
||||||
|
- mkdir -p usr/share/metainfo/ ; cp ../wireguide.appdata.xml usr/share/metainfo/
|
||||||
|
- cat > usr/share/applications/ke.mic.wireguide.desktop <<\EOF
|
||||||
|
- [Desktop Entry]
|
||||||
|
- Type=Application
|
||||||
|
- Name=WireGUIde
|
||||||
|
- Comment=A GUI for WireGuard
|
||||||
|
- Icon=ke.mic.wireguide
|
||||||
|
- Exec=python3 /usr/local/bin/wireguide
|
||||||
|
- Terminal=false
|
||||||
|
- Categories=Application;
|
||||||
|
- Keywords=Python;
|
||||||
|
- MimeType=text/x-python3;
|
||||||
|
- EOF
|
||||||
|
- cp usr/share/applications/ke.mic.wireguide.desktop .
|
||||||
|
- usr/bin/pip3 freeze | grep "wireguide" | cut -d "=" -f 3 >> ../VERSION:0
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="wireguide",
|
name="wireguide",
|
||||||
version="0.0.5",
|
version="0.0.6",
|
||||||
author="Mikael Nordin",
|
author="Mikael Nordin",
|
||||||
author_email="mik@elnord.in",
|
author_email="mik@elnord.in",
|
||||||
description="A WireGuard GUI for GNU/Linux",
|
description="A WireGuard GUI for GNU/Linux",
|
||||||
|
|
|
@ -24,7 +24,7 @@ class WireFrame(wx.Frame): # pylint: disable=too-many-ancestors,too-many-instan
|
||||||
def __init__(self, *args, **kw):
|
def __init__(self, *args, **kw):
|
||||||
super().__init__(*args, **kw)
|
super().__init__(*args, **kw)
|
||||||
self.SetIcon(wx.Icon(get_logo_path()))
|
self.SetIcon(wx.Icon(get_logo_path()))
|
||||||
self.version = "0.0.5"
|
self.version = "0.0.6"
|
||||||
|
|
||||||
# Get active conns from NetworkManager
|
# Get active conns from NetworkManager
|
||||||
self.client = NM.Client.new(None)
|
self.client = NM.Client.new(None)
|
||||||
|
@ -213,6 +213,7 @@ class WireFrame(wx.Frame): # pylint: disable=too-many-ancestors,too-many-instan
|
||||||
with wx.FileDialog(self,
|
with wx.FileDialog(self,
|
||||||
"Open WireGuard config file",
|
"Open WireGuard config file",
|
||||||
wildcard="WireGuard files (*.conf)|*.conf",
|
wildcard="WireGuard files (*.conf)|*.conf",
|
||||||
|
defaultDir="~/",
|
||||||
style=wx.FD_OPEN
|
style=wx.FD_OPEN
|
||||||
| wx.FD_FILE_MUST_EXIST) as file_dialog:
|
| wx.FD_FILE_MUST_EXIST) as file_dialog:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue