-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
29 lines (22 loc) · 826 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/python3
import os
from distutils.core import setup
RESOURCES_DIRECTORY_PATH="/usr/share/tinc-applet"
def find_resources(resource_dir):
target_path = os.path.join(RESOURCES_DIRECTORY_PATH, resource_dir)
resource_names = os.listdir(resource_dir)
resource_list = [os.path.join(resource_dir, file_name) for file_name in resource_names]
return (target_path, resource_list)
setup(name="tincapplet",
version="1.0",
description="Tinc Applet Indicator for Ubuntu",
url='https://github.com/rjulian/tinc-applet',
author='rjulian',
author_email='[email protected]',
license='GPL',
packages=["tincapplet"],
data_files=[
('/usr/share/applications', ['tinc-applet.desktop']),
find_resources("img/")],
scripts=["bin/tinc-applet"]
)