Skip to content

Commit

Permalink
Windows ico files
Browse files Browse the repository at this point in the history
Issue #145
  • Loading branch information
damies13 committed Aug 25, 2024
1 parent a014080 commit 8d5fd29
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 20 deletions.
Binary file added rfswarm_agent/icons/rfswarm-agent-128.ico
Binary file not shown.
Binary file added rfswarm_agent/icons/rfswarm-agent-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added rfswarm_agent/icons/rfswarm-logo-128.ico
Binary file not shown.
Binary file added rfswarm_agent/icons/rfswarm-logo-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added rfswarm_manager/icons/rfswarm-logo-128.ico
Binary file not shown.
Binary file added rfswarm_manager/icons/rfswarm-manager-128.ico
Binary file not shown.
Binary file added rfswarm_reporter/icons/rfswarm-logo-128.ico
Binary file not shown.
Binary file added rfswarm_reporter/icons/rfswarm-logo-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added rfswarm_reporter/icons/rfswarm-reporter-128.ico
Binary file not shown.
Binary file added rfswarm_reporter/icons/rfswarm-reporter-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 2 additions & 20 deletions setup-manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,6 @@

ROOT_DIR = os.path.dirname(os.path.abspath(__file__))


class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
install.run(self)
# PUT YOUR POST-INSTALL SCRIPT HERE or CALL A FUNCTION
sys.stdout.write("Creating Desktop Shortcut for RFSwarm Manager...\n")
install_dir = os.path.join(ROOT_DIR, "somewhere")
sys.stdout.write("install_dir: " + install_dir + "\n")

user_dir = os.path.expanduser("~")

test_file = os.path.join(user_dir, "rfswarm_test.txt")
with open(test_file, "a",) as f:
f.writelines(["RFSwarm test\n", "install_dir:", install_dir, "\n"])


with open("README_PyPi.md", "r", encoding="utf-8") as fh:
long_description = fh.read()

Expand All @@ -42,7 +25,9 @@ def run(self):
# package_data={"desktop": ["*.png"]},
data_files = [
('rfswarm_manager/icons', ['rfswarm_manager/icons/rfswarm-manager-128.png']),
('rfswarm_manager/icons', ['rfswarm_manager/icons/rfswarm-manager-128.ico']),
('rfswarm_manager/icons', ['rfswarm_manager/icons/rfswarm-logo-128.png']),
('rfswarm_manager/icons', ['rfswarm_manager/icons/rfswarm-logo-128.ico']),
],
include_package_data=True,
# I needed a recent version of pip (pip 21.0.1 worked my previous <20 version didn't) for matplotlib
Expand All @@ -64,9 +49,6 @@ def run(self):
'Say Thanks!': 'https://github.com/damies13/rfswarm#donations',
'Source': 'https://github.com/damies13/rfswarm',
},
cmdclass={
'install': PostInstallCommand,
},
entry_points={'console_scripts': ['rfswarm = rfswarm_manager.rfswarm:RFSwarm', 'rfswarm-manager = rfswarm_manager.rfswarm:RFSwarm']},
)

Expand Down

0 comments on commit 8d5fd29

Please sign in to comment.