Skip to content

Commit

Permalink
CHANGE: updated installer code
Browse files Browse the repository at this point in the history
  • Loading branch information
febret committed Aug 24, 2016
1 parent 3c8b1d8 commit ec77cce
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 10 deletions.
10 changes: 5 additions & 5 deletions firefly.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@

# #-------------------------------------------------------------------------------
# # Load firefly components
orun('config.py')
orun('colormapConfig.py')
orun('render.py')
orun('loader.py')
orun('flyControl.py')
orun('firefly/config.py')
orun('firefly/colormapConfig.py')
orun('firefly/render.py')
orun('firefly/loader.py')
orun('firefly/flyControl.py')

#-------------------------------------------------------------------------------
# Application state
Expand Down
Binary file removed install-config/banner.png
Binary file not shown.
7 changes: 3 additions & 4 deletions install-config/config-offline.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
<Title>Firefly</Title>
<Publisher>The Firefly team</Publisher>
<StartMenuDir>Firefly</StartMenuDir>
<TargetDir>@@ApplicationsDir@@/firefly</TargetDir>
<TargetDir>@@ApplicationsDir@@/firefly.app</TargetDir>
<ProductUrl>http://www.github.com/febret/firefly/</ProductUrl>
<InstallerApplicationIcon>omega64-transparent</InstallerApplicationIcon>
<Logo>watermark.png</Logo>
<Banner>banner.png</Banner>
<InstallerApplicationIcon>icon</InstallerApplicationIcon>
<Logo>icon.png</Logo>
<CreateLocalRepository>True</CreateLocalRepository>
<MaintenanceToolName>UninstallFirefly</MaintenanceToolName>
</Installer>
Binary file added install-config/icon.icns
Binary file not shown.
Binary file added install-config/icon.ico
Binary file not shown.
Binary file added install-config/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 14 additions & 1 deletion install-config/installscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,21 @@ Component.prototype.createOperations = function(archive)
component.createOperations(archive);

if(typeof systemInfo != "undefined" && systemInfo.kernelType != "winnt") {
// NOTE: This is specific for OSX, not linux!

// Create links to Chromium embedded framework resources file
component.addOperation("Execute", "mkdir", "-p", "@TargetDir@/Contents/Frameworks/Chromium Embedded Framework.framework",
"UNDOEXECUTE", "rm", "-rf", "@TargetDir@/Contents/Frameworks/Chromium Embedded Framework.framework");

// Create links to Chromium embedded framework resources file
component.addOperation("Execute", "ln", "-s", "@TargetDir@/bin/Resources", "@TargetDir@/Contents/Frameworks/Chromium Embedded Framework.framework/Resources");
component.addOperation("Execute", "ln", "-s", "@TargetDir@/bin", "@TargetDir@/Contents/MacOS");

// Create links to executable and data in /usr
component.addOperation("Execute", "ln", "-s", "@TargetDir@/bin/orun", "/usr/local/bin/firefly",
component.addOperation("Execute", "ln", "-s", "@TargetDir@/Contents/MacOS/orun", "/usr/local/bin/firefly",
"UNDOEXECUTE", "rm", "/usr/local/bin/firefly");

component.addOperation("Execute", "ln", "-s", "@TargetDir@/UninstallFirefly.app/Contents/MacOS/UninstallFirefly", "/usr/local/bin/firefly-uninstall",
"UNDOEXECUTE", "rm", "/usr/local/bin/firefly-uninstall");
}
}
Binary file removed install-config/logo-shadow.png
Binary file not shown.
Binary file removed install-config/omega64-transparent.icns
Binary file not shown.
Binary file removed install-config/omega64-transparent.ico
Binary file not shown.
Binary file removed install-config/watermark.png
Binary file not shown.

0 comments on commit ec77cce

Please sign in to comment.