Browse Source

Import errors

File icon
tags/build/2.0.0.pre1
Ruud 13 years ago
parent
commit
3cd59edc8b
  1. 3
      Desktop.py
  2. 7
      installer.iss
  3. 6
      setup.py

3
Desktop.py

@ -10,7 +10,6 @@ import wx
if hasattr(sys, 'frozen'): if hasattr(sys, 'frozen'):
import libs import libs
base_path = os.path.dirname(os.path.dirname(os.path.abspath(libs.__file__))) base_path = os.path.dirname(os.path.dirname(os.path.abspath(libs.__file__)))
print base_path
else: else:
base_path = os.path.dirname(os.path.abspath(__file__)) base_path = os.path.dirname(os.path.abspath(__file__))
@ -143,7 +142,7 @@ class CouchPotatoApp(wx.App, SoftwareUpdate):
# Updater # Updater
base_url = 'http://couchpota.to/updates/' base_url = 'http://couchpota.to/updates/'
self.InitUpdates(base_url, base_url + 'changelog.html', self.InitUpdates(base_url, base_url + 'changelog.html',
icon = wx.Icon('icon.ico')) icon = wx.Icon('icon.png'))
self.frame = MainFrame(self) self.frame = MainFrame(self)
self.frame.Bind(wx.EVT_CLOSE, self.onClose) self.frame.Bind(wx.EVT_CLOSE, self.onClose)

7
installer.iss

@ -1,5 +1,5 @@
#define MyAppName "CouchPotato" #define MyAppName "CouchPotato"
#define MyAppVer GetFileVersion("./dist/"+MyAppName+".exe") #define MyAppVer "0.5"
[Setup] [Setup]
AppName={#MyAppName} AppName={#MyAppName}
@ -7,14 +7,15 @@ AppVersion={#MyAppVer}
AppVerName={#MyAppName} AppVerName={#MyAppName}
DefaultDirName={pf}\{#MyAppName} DefaultDirName={pf}\{#MyAppName}
DisableProgramGroupPage=yes DisableProgramGroupPage=yes
UninstallDisplayIcon={app}\icon.ico UninstallDisplayIcon=./icon.ico
SetupIconFile=./icon.ico
OutputDir=./dist OutputDir=./dist
OutputBaseFilename={#MyAppName}-{#MyAppVer}.win32.installer OutputBaseFilename={#MyAppName}-{#MyAppVer}.win32.installer
AppPublisher=Your Mom AppPublisher=Your Mom
AppPublisherURL=http://couchpota.to AppPublisherURL=http://couchpota.to
[Files] [Files]
Source: "./*"; DestDir: "{app}" Source: "./dist/{#MyAppName}-{#MyAppVer}.win32/*"; Flags: recursesubdirs; DestDir: "{app}"
[Icons] [Icons]
Name: "{commonprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppName}.exe" Name: "{commonprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppName}.exe"

6
setup.py

@ -45,6 +45,8 @@ if sys.platform == "win32":
'xml.etree.cElementTree', 'xml.etree.cElementTree',
'xml.dom', 'xml.dom',
'xml.dom.minidom', 'xml.dom.minidom',
'netrc',
'csv',
], ],
skip_archive = 1, skip_archive = 1,
) )
@ -70,10 +72,12 @@ elif sys.platform == "darwin":
'xml.etree.cElementTree', 'xml.etree.cElementTree',
'xml.dom', 'xml.dom',
'xml.dom.minidom', 'xml.dom.minidom',
'netrc',
'csv',
], ],
) )
exeICON = None exeICON = None
DATA_FILES = ['icon.ico'] DATA_FILES = ['icon.png']
# Common # Common
NAME = "CouchPotato" NAME = "CouchPotato"

Loading…
Cancel
Save