Skip to content

Commit

Permalink
Build: Added win32 installer .iss & .exe
Browse files Browse the repository at this point in the history
Created .iss file with setup information and build
into .exe file
Fixes: #5

Signed-Off-By: Progyan Bhattacharya <[email protected]>
  • Loading branch information
0xTheProDev committed Apr 24, 2017
1 parent 2a48149 commit ca72423
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 2 deletions.
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 by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

[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}"

[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}"

0 comments on commit ca72423

Please sign in to comment.