提交 1dab2cb3 编写于 作者: M Mathieu Bastian

Work on windows installer and fix gephi.conf

上级 15442be8
......@@ -557,7 +557,8 @@
</includes>
<filtering>true</filtering>
</resource>
</resources>
</resources>
<escapeString>\</escapeString>
</configuration>
</execution>
</executions>
......@@ -682,22 +683,42 @@
</build>
</profile>
<!-- Profile activated for release in addition of deployement. Create the installers. -->
<!-- Profile activated for windows release in addition of deployement. Create the installer. -->
<profile>
<id>release</id>
<id>release-windows</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>nbm-maven-plugin</artifactId>
<executions>
<execution>
<id>extra</id>
<goals>
<goal>build-installers</goal>
</goals>
</execution>
</executions>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>generate-iss-file</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/windows</outputDirectory>
<resources>
<resource>
<directory>src/main/app-resources</directory>
<includes>
<include>${brandingToken}.iss</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/app-resources</directory>
<includes>
<include>${brandingToken}.ico</include>
<include>${brandingToken}file128.png</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
......
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{51722911-C391-4118-97BF-B50100D2AB15}
AppName=Gephi
AppVerName=${gephi.menu.app.name}
AppPublisher=Gephi
AppPublisherURL=http://gephi.org
AppSupportURL=http://gephi.org
AppUpdatesURL=http://gephi.org
DefaultDirName={pf}\Gephi
DefaultGroupName=Gephi
LicenseFile=COPYING.txt
OutputDir=.
OutputBaseFilename=${project.artifactId}-${project.version}.setup
SetupIconFile=gephi.ico
Compression=lzma
SolidCompression=yes
ChangesAssociations=yes
PrivilegesRequired=none
UsePreviousAppDir=false
UsePreviousGroup=false
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; Flags: checkedonce
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; Flags: checkedonce
Name: "associategephi"; Description: "&Associate .gephi files"; Flags: checkedonce
Name: "associategexf"; Description: "&Associate .gexf files"; Flags: checkedonce
Name: "associategdf"; Description: "&Associate .gdf files"; Flags: unchecked
Name: "associategraphml"; Description: "&Associate .graphml files"; Flags: unchecked
Name: "associatenet"; Description: "&Associate .net files"; Flags: unchecked
[Files]
;Source: "gephi\bin\gephi.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "gephi\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\Gephi"; Filename: "{app}\bin\gephi.exe"
Name: "{commondesktop}\Gephi"; Filename: "{app}\bin\gephi.exe"; Tasks: desktopicon
Name: "{group}\Startup settings"; Filename: "{app}\etc\gephi.conf"
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\Gephi"; Filename: "{app}\bin\gephi.exe"; Tasks: quicklaunchicon
[Run]
Filename: "{app}\bin\gephi.exe"; Description: "{cm:LaunchProgram,Gephi}"; Flags: nowait postinstall skipifsilent
[Registry]
Root: HKCR; Subkey: ".gephi"; ValueType: string; ValueName: ""; ValueData: "GephiProject"; Flags: uninsdeletevalue; Tasks: associategephi
Root: HKCR; Subkey: "GephiProject"; ValueType: string; ValueName: ""; ValueData: "Gephi Project File"; Flags: uninsdeletekey; Tasks: associategephi
Root: HKCR; Subkey: "GephiProject\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\bin\GEPHI.EXE,1"; Tasks: associategephi
Root: HKCR; Subkey: "GephiProject\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\bin\GEPHI.EXE"" ""%1"""; Tasks: associategephi
Root: HKCR; Subkey: ".gexf"; ValueType: string; ValueName: ""; ValueData: "GexfGraphFile"; Flags: uninsdeletevalue; Tasks: associategexf
Root: HKCR; Subkey: "GexfGraphFile"; ValueType: string; ValueName: ""; ValueData: "GEXF Graph File"; Flags: uninsdeletekey; Tasks: associategexf
Root: HKCR; Subkey: "GexfGraphFile\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\bin\GEPHI.EXE,1"; Tasks: associategexf
Root: HKCR; Subkey: "GexfGraphFile\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\bin\GEPHI.EXE"" ""%1"""; Tasks: associategexf
Root: HKCR; Subkey: ".gdf"; ValueType: string; ValueName: ""; ValueData: "GdfGraphFile"; Flags: uninsdeletevalue; Tasks: associategdf
Root: HKCR; Subkey: "GdfGraphFile"; ValueType: string; ValueName: ""; ValueData: "GDF Graph File"; Flags: uninsdeletekey; Tasks: associategdf
Root: HKCR; Subkey: "GdfGraphFile\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\bin\GEPHI.EXE,1"; Tasks: associategdf
Root: HKCR; Subkey: "GdfGraphFile\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\bin\GEPHI.EXE"" ""%1"""; Tasks: associategdf
Root: HKCR; Subkey: ".graphml"; ValueType: string; ValueName: ""; ValueData: "GraphmlGraphFile"; Flags: uninsdeletevalue; Tasks: associategraphml
Root: HKCR; Subkey: "GraphmlGraphFile"; ValueType: string; ValueName: ""; ValueData: "GraphML Graph File"; Flags: uninsdeletekey; Tasks: associategraphml
Root: HKCR; Subkey: "GraphmlGraphFile\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\bin\GEPHI.EXE,1"; Tasks: associategraphml
Root: HKCR; Subkey: "GraphmlGraphFile\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\bin\GEPHI.EXE"" ""%1"""; Tasks: associategraphml
Root: HKCR; Subkey: ".net"; ValueType: string; ValueName: ""; ValueData: "PajekGraphFile"; Flags: uninsdeletevalue; Tasks: associatenet
Root: HKCR; Subkey: "PajekGraphFile"; ValueType: string; ValueName: ""; ValueData: "NET Graph File"; Flags: uninsdeletekey; Tasks: associatenet
Root: HKCR; Subkey: "PajekGraphFile\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\bin\GEPHI.EXE,1"; Tasks: associatenet
Root: HKCR; Subkey: "PajekGraphFile\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\bin\GEPHI.EXE"" ""%1"""; Tasks: associatenet
[InstallDelete]
Type: filesandordirs; Name: "{userappdata}\.gephi\dev\config\Modules"
Type: filesandordirs; Name: "{userappdata}\.gephi\dev\config\Preferences"
Type: filesandordirs; Name: "{userappdata}\.gephi\dev\config\Windows2Local"
Type: filesandordirs; Name: "{userappdata}\.gephi\dev\modules"
Type: filesandordirs; Name: "{userappdata}\.gephi\dev\update_tracking"
Type: filesandordirs; Name: "{userappdata}\.gephi\dev\var"
# ${HOME} will be replaced by user home directory according to platform
default_userdir="${HOME}/.${APPNAME}/${project.version}/dev"
default_mac_userdir="${HOME}/Library/Application Support/${APPNAME}/${project.version}/dev"
# \${HOME} will be replaced by user home directory according to platform
default_userdir="\${HOME}/.\${APPNAME}/${project.version}/dev"
default_mac_userdir="\${HOME}/Library/Application Support/\${APPNAME}/${project.version}/dev"
# options used by the launcher by default, can be overridden by explicit
# command line switches
......
......@@ -101,6 +101,10 @@
<!-- SCM -->
<gephi.scm>git</gephi.scm>
<!-- Installers settings -->
<gephi.menu.app.name>Gephi ${project.version}</gephi.menu.app.name>
<!--==== Plugin Versions ==================================================================================-->
<gephi.maven-antrun-plugin.version>1.6</gephi.maven-antrun-plugin.version>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册