mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-05-02 14:46:22 -04:00
update build file structure, add win ico
This commit is contained in:
parent
3f2531960b
commit
7fc485dd88
27 changed files with 80 additions and 22 deletions
75
package/windows/Bitsquare.iss
Normal file
75
package/windows/Bitsquare.iss
Normal file
|
@ -0,0 +1,75 @@
|
|||
;This file will be executed next to the application bundle image
|
||||
;I.e. current directory will contain folder Bitsquare with application files
|
||||
[Setup]
|
||||
AppId={{bitsquare}}
|
||||
AppName=Bitsquare
|
||||
AppVersion=0.1.1
|
||||
AppVerName=Bitsquare 0.1.1
|
||||
AppPublisher=Bitsquare
|
||||
AppComments=Bitsquare
|
||||
AppCopyright=Copyright (C) 2014
|
||||
AppPublisherURL=https://bitsquare.io
|
||||
AppSupportURL=https://bitsquare.io
|
||||
;AppUpdatesURL=http://java.com/
|
||||
DefaultDirName={localappdata}\Bitsquare
|
||||
DisableStartupPrompt=Yes
|
||||
DisableDirPage=Yes
|
||||
DisableProgramGroupPage=Yes
|
||||
DisableReadyPage=Yes
|
||||
DisableFinishedPage=Yes
|
||||
DisableWelcomePage=Yes
|
||||
DefaultGroupName=Bitsquare
|
||||
;Optional License
|
||||
LicenseFile=
|
||||
;WinXP or above
|
||||
MinVersion=0,5.1
|
||||
OutputBaseFilename=Bitsquare-0.1.1
|
||||
Compression=lzma
|
||||
SolidCompression=yes
|
||||
PrivilegesRequired=lowest
|
||||
SetupIconFile=Bitsquare\Bitsquare.ico
|
||||
UninstallDisplayIcon={app}\Bitsquare.ico
|
||||
UninstallDisplayName=Bitsquare
|
||||
WizardImageStretch=No
|
||||
WizardSmallImageFile=Bitsquare-setup-icon.bmp
|
||||
ArchitecturesInstallIn64BitMode=x64
|
||||
|
||||
[Languages]
|
||||
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||
|
||||
[Files]
|
||||
Source: "Bitsquare\Bitsquare.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "Bitsquare\runtime\jre\bin\plugin2\msvcr100.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "Bitsquare\runtime\jre\bin\msvcp100.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "Bitsquare\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
|
||||
[Icons]
|
||||
Name: "{group}\Bitsquare"; Filename: "{app}\Bitsquare.exe"; IconFilename: "{app}\Bitsquare.ico"; Check: returnTrue()
|
||||
Name: "{commondesktop}\Bitsquare"; Filename: "{app}\Bitsquare.exe"; IconFilename: "{app}\Bitsquare.ico"; Check: returnFalse()
|
||||
|
||||
[Run]
|
||||
Filename: "{app}\Bitsquare.exe"; Description: "{cm:LaunchProgram,Bitsquare}"; Flags: nowait postinstall skipifsilent; Check: returnTrue()
|
||||
Filename: "{app}\Bitsquare.exe"; Parameters: "-install -svcName ""Bitsquare"" -svcDesc ""Bitsquare"" -mainExe ""Bitsquare.exe"" "; Check: returnFalse()
|
||||
|
||||
[UninstallRun]
|
||||
Filename: "{app}\Bitsquare.exe "; Parameters: "-uninstall -svcName Bitsquare -stopOnUninstall"; Check: returnFalse()
|
||||
|
||||
[Code]
|
||||
function returnTrue(): Boolean;
|
||||
begin
|
||||
Result := True;
|
||||
end;
|
||||
|
||||
function returnFalse(): Boolean;
|
||||
begin
|
||||
Result := False;
|
||||
end;
|
||||
|
||||
function InitializeSetup(): Boolean;
|
||||
begin
|
||||
// Possible future improvements:
|
||||
// if version less or same => just launch app
|
||||
// if upgrade => check if same app is running and wait for it to exit
|
||||
// Add pack200/unpack200 support?
|
||||
Result := True;
|
||||
end;
|
13
package/windows/build_create_app.bat
Normal file
13
package/windows/build_create_app.bat
Normal file
|
@ -0,0 +1,13 @@
|
|||
@echo off
|
||||
|
||||
cd ..\..\
|
||||
call mvn clean package -DskipTests -Dmaven.javadoc.skip=true
|
||||
copy gui\target\shaded.jar gui\updatefx\builds\1.jar
|
||||
|
||||
:: edit url
|
||||
call java -Xmx2048m -jar ./updatefx/updatefx-app-1.2.jar --url=http://localhost:8000/ gui/updatefx
|
||||
|
||||
:: Needs Inno Setup 5 or later (http://www.jrsoftware.org/isdl.php)
|
||||
call "c:\Program Files\Java\jdk1.8.0_40\bin\javapackager.exe" -deploy -BappVersion=0.1 -native exe -name Bitsquare -title Bitsquare -vendor Bitsquare -outdir gui\deploy -appclass io.bitsquare.app.gui.BitsquareAppMain -srcfiles "gui\updatefx\builds\processed\1.jar" -outfile Bitsquare -Bruntime="c:\Program Files\Java\jdk1.8.0_40\jre"
|
||||
|
||||
cd package\win
|
18
package/windows/build_setup.bat
Normal file
18
package/windows/build_setup.bat
Normal file
|
@ -0,0 +1,18 @@
|
|||
@echo off
|
||||
|
||||
:: setup dirs
|
||||
cd ..\..\
|
||||
mkdir gui\updatefx
|
||||
mkdir gui\updatefx\builds
|
||||
mkdir gui\updatefx\builds\processed
|
||||
mkdir gui\updatefx\site
|
||||
mkdir gui\deploy
|
||||
|
||||
:: create key/wallet. Copy wallet to UpdateProcess or use wallet form other OS build
|
||||
call java -Xmx2048m -jar ./updatefx/updatefx-app-1.2.jar --url=http://localhost:8000/ gui/updatefx
|
||||
|
||||
cd package\win
|
||||
|
||||
:: start webserver for update data
|
||||
:: cd gui\updatefx\site
|
||||
:: python -m SimpleHTTPServer 8000
|
9
package/windows/build_update.bat
Normal file
9
package/windows/build_update.bat
Normal file
|
@ -0,0 +1,9 @@
|
|||
@echo off
|
||||
|
||||
call mvn clean package -DskipTests -Dmaven.javadoc.skip=true
|
||||
|
||||
:: edit version /*.jar
|
||||
cp gui\target\shaded.jar gui\updatefx\builds\2.jar
|
||||
|
||||
:: edit url
|
||||
call java -jar ./updatefx/updatefx-app-1.2.jar --url=http://localhost:8000/ gui/updatefx
|
BIN
package/windows/msvcp100.dll
Normal file
BIN
package/windows/msvcp100.dll
Normal file
Binary file not shown.
BIN
package/windows/msvcr100.dll
Normal file
BIN
package/windows/msvcr100.dll
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue