Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build: Added win32 installer .iss & .exe #6

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,7 @@ to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

{description}
Copyright (C) {year} {fullname}
Copyright (C) 2017 Bytes Club (https://bytesclub.github.io)

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down
Binary file added Output/Battery Manager.exe
Binary file not shown.
Binary file added favicon.ico
Binary file not shown.
16 changes: 16 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from distutils.core import setup
import py2exe

setup(
# The first three parameters are not required, if at least a
# 'version' is given, then a versioninfo resource is built from
# them and added to the executables.
version = "1.0.0",
description = "Battery Manager Setup",
name = "Battery Manager",
author = "Bytes Club",
license = "GPL-2.0",

# targets to build
console = ["battery.py"],
)
30 changes: 30 additions & 0 deletions win32-installer.iss
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
; Script generated for the Inno Setup Script.

[Setup]
AppName=Battery Manager
AppVersion=1.0.0
DefaultDirName={pf}\Battery Manager
DefaultGroupName=Battery Manager
AppPublisher=Bytes Club
AppPublisherURL=https://bytesclub.github.io
AppCopyright=Copyright (C) 2017 Bytes Club, GNU Public License 2.0
LicenseFile=LICENSE
SetupIconFile=favicon.ico
OutputBaseFilename=Battery Manager

[Files]
Source: "LICENSE"; DestDir: "{app}"
Source: "favicon.ico"; DestDir: "{app}"
; Add Output EXE file

[Icons]
Name: "{group}\Battery Manager"; Filename: "{app}\BatteryManager.EXE"; WorkingDir: "{app}"; IconFilename: "{app}/favicon.ico"
Name: "{group}\Uninstall Battery Manager"; Filename: "{uninstallexe}"

[Registry]
Root: HKCU; Subkey: "Software\Bytes Club"; Flags: uninsdeletekeyifempty
Root: HKCU; Subkey: "Software\Bytes Club\Battery Manager"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\Bytes Club"; Flags: uninsdeletekeyifempty
Root: HKLM; Subkey: "Software\Bytes Club\Battery Manager"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\Bytes Club\Battery Manager\Settings"; ValueType: string; ValueName: "InstallPath"; ValueData: "{app}"