-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #172 from Querz/1.17
1.14 release
- Loading branch information
Showing
192 changed files
with
10,499 additions
and
4,104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
dist: trusty | ||
language: java | ||
jdk: | ||
- oraclejdk8 | ||
addons: | ||
ssh_known_hosts: deploy.querz.net | ||
|
||
before_install: | ||
# update apt-get | ||
- sudo apt-get update | ||
|
||
# inno setup | ||
- sudo apt-get install -y -q wine unzip | ||
- wine --version | ||
- sudo sh travis/inno/innoinstall.sh | ||
|
||
# download 7zip | ||
- sudo sh travis/inno/7zipdownload.sh | ||
|
||
install: | ||
# disable default travis behavior 'gradle assemble' | ||
- ./gradlew -v | ||
|
||
script: | ||
# gradle build | ||
- sudo ./gradlew clean build shadowJar createExe installer --stacktrace --warning-mode all | ||
|
||
# run inno setup | ||
- sudo sh travis/inno/iscc.sh build/inno/inno.iss | ||
|
||
after-success: | ||
# decrypt deployment key | ||
- openssl aes-256-cbc -K $encrypted_db2095f63ba3_key -iv $encrypted_db2095f63ba3_iv -in travis/deploy/deploy_rsa.enc -out travis/deploy/deploy_rsa -d | ||
- eval "$(ssh-agent -s)" | ||
- chmod 600 travis/deploy/deploy_rsa | ||
- ssh-add travis/deploy/deploy_rsa | ||
|
||
# send output to deployment server | ||
- ssh [email protected] "mkdir -p ~/mcaselector/$TRAVIS_BUILD_ID/" | ||
- scp -r build/inno/Output/* "[email protected]:~/mcaselector/$TRAVIS_BUILD_ID/" | ||
- scp -r build/libs/*.jar "[email protected]:~/mcaselector/$TRAVIS_BUILD_ID/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
[Setup] | ||
AppId={{C6145D1F-C820-492A-A649-F4D4C063EECB} | ||
AppName=${applicationName} | ||
AppVersion=${applicationVersion} | ||
;AppVerName=${applicationName} ${applicationVersion} | ||
AppPublisher=${applicationAuthor} | ||
AppPublisherURL=${applicationUrl} | ||
AppSupportURL=${applicationUrl} | ||
AppUpdatesURL=${applicationUrl} | ||
DefaultDirName={autopf}\\${applicationName} | ||
DisableProgramGroupPage=yes | ||
LicenseFile=LICENSE | ||
PrivilegesRequired=lowest | ||
PrivilegesRequiredOverridesAllowed=dialog | ||
OutputBaseFilename=MCA_Selector_Setup | ||
SetupIconFile=icon.ico | ||
Compression=lzma | ||
SolidCompression=yes | ||
WizardStyle=modern | ||
WizardSmallImageFile=small.bmp | ||
WizardImageFile=large.bmp | ||
ExtraDiskSpaceRequired=178204672 | ||
|
||
[Languages] | ||
Name: "english"; MessagesFile: "compiler:Default.isl" | ||
Name: "brazilianportuguese"; MessagesFile: "compiler:Languages\\BrazilianPortuguese.isl" | ||
Name: "czech"; MessagesFile: "compiler:Languages\\Czech.isl" | ||
Name: "dutch"; MessagesFile: "compiler:Languages\\Dutch.isl" | ||
Name: "french"; MessagesFile: "compiler:Languages\\French.isl" | ||
Name: "german"; MessagesFile: "compiler:Languages\\German.isl" | ||
Name: "italian"; MessagesFile: "compiler:Languages\\Italian.isl" | ||
Name: "polish"; MessagesFile: "compiler:Languages\\Polish.isl" | ||
Name: "portuguese"; MessagesFile: "compiler:Languages\\Portuguese.isl" | ||
Name: "russian"; MessagesFile: "compiler:Languages\\Russian.isl" | ||
Name: "spanish"; MessagesFile: "compiler:Languages\\Spanish.isl" | ||
|
||
[Tasks] | ||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked | ||
|
||
[Files] | ||
Source: "${applicationName}.exe"; DestDir: "{app}"; Flags: ignoreversion | ||
Source: "7za.exe"; DestDir: "{tmp}"; Flags: deleteafterinstall | ||
Source: "${applicationJar}"; DestDir: "{app}"; Flags: ignoreversion | ||
|
||
[UninstallDelete] | ||
Type: filesandordirs; Name: "{app}\\jre" | ||
|
||
[Icons] | ||
Name: "{autoprograms}\\${applicationName}"; Filename: "{app}\\${applicationName}.exe" | ||
Name: "{autodesktop}\\${applicationName}"; Filename: "{app}\\${applicationName}.exe"; Tasks: desktopicon | ||
|
||
[Run] | ||
Filename: "{tmp}\\7za.exe"; Parameters: "x -y {tmp}\\jre.zip"; WorkingDir: "{app}"; AfterInstall: RenameJRE; Flags: runhidden | ||
Filename: "{app}\\${applicationName}.exe"; Description: "{cm:LaunchProgram,${applicationName}}"; Flags: nowait postinstall skipifsilent | ||
|
||
[Code] | ||
var DownloadPage: TDownloadWizardPage; | ||
function OnDownloadProgress(const Url, FileName: String; const Progress, ProgressMax: Int64): Boolean; | ||
begin | ||
if Progress = ProgressMax then | ||
Log(Format('Successfully downloaded file to {tmp}: %s', [FileName])); | ||
Result := True; | ||
end; | ||
procedure InitializeWizard; | ||
begin | ||
DownloadPage := CreateDownloadPage(SetupMessage(msgWizardPreparing), SetupMessage(msgPreparingDesc), @OnDownloadProgress); | ||
end; | ||
function NextButtonClick(CurPageID: Integer): Boolean; | ||
begin | ||
if CurPageID = wpReady then begin | ||
DownloadPage.Clear; | ||
DownloadPage.Add('https://cdn.azul.com/zulu/bin/zulu8.52.0.23-ca-fx-jre8.0.282-win_x64.zip', 'jre.zip', ''); | ||
DownloadPage.Show; | ||
try | ||
try | ||
DownloadPage.Download; | ||
Result := True; | ||
except | ||
SuppressibleMsgBox(AddPeriod(GetExceptionMessage), mbCriticalError, MB_OK, IDOK); | ||
Result := False; | ||
end; | ||
finally | ||
DownloadPage.Hide; | ||
end; | ||
end else | ||
Result := True; | ||
end; | ||
procedure RenameJRE; | ||
begin | ||
Log('Renaming jre directory'); | ||
RenameFile(ExpandConstant('{app}\\zulu8.52.0.23-ca-fx-jre8.0.282-win_x64'), ExpandConstant('{app}\\jre')); | ||
end; |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.