diff --git a/appveyor.yml b/appveyor.yml index 17d20c2..e9db65b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,5 +1,5 @@ environment: - app_version: '7.3.0' + app_version: '7.2.2' version: '%app_version%.{build}' diff --git a/rakefile.rb b/rakefile.rb index 3a83287..379ec8c 100644 --- a/rakefile.rb +++ b/rakefile.rb @@ -29,11 +29,11 @@ VARIABLES[:ProductVersion] = @product_version VARIABLES[:ProductFullVersion] = @product_full_version - MSI[:pksim] = create_package('pk-sim', 'PK-Sim') - MSI[:mobi] = create_package('mobi', 'MoBi') - MSI[:matlab] = create_package('matlab-toolbox', 'Matlab-Toolbox') - MSI[:r] = create_package('r-toolbox', 'R-Toolbox') - MSI[:validator] = create_package('installationvalidator', 'InstallationValidator') + MSI[:pksim] = create_package('pk-sim', 'PK-Sim', branch: 'hotfix/7.2.2') + MSI[:mobi] = create_package('mobi', 'MoBi', branch: 'hotfix/7.2.2') + MSI[:matlab] = create_package('matlab-toolbox', 'Matlab-Toolbox', uri: 'https://ci.appveyor.com/api/buildjobs/gk8wjvf5jmi9tsc1/artifacts/setup.zip') + MSI[:r] = create_package('r-toolbox', 'R-Toolbox', uri: 'https://ci.appveyor.com/api/buildjobs/efv1kw037tv3sfyj/artifacts/setup.zip') + MSI[:validator] = create_package('installationvalidator', 'InstallationValidator', branch: 'hotfix/7.2.2') Rake::Task['downlad_all_packages'].invoke @@ -51,7 +51,7 @@ def create_versions_file end end -def create_package(appveyor_project_name, git_repository, artifact_name: 'setup.zip', version: @product_version, branch: @branch_name) +def create_package(appveyor_project_name, git_repository, artifact_name: 'setup.zip', version: @product_version, branch: @branch_name, uri:nil) compressed = artifact_name.include? '.zip' git_repo = git_repository || appveyor_project_name @@ -61,7 +61,8 @@ def create_package(appveyor_project_name, git_repository, artifact_name: 'setup branch: branch, compressed: compressed, git_repository: git_repo, - version: version + version: version, + uri:uri } end @@ -120,6 +121,9 @@ def prepare_msi(msi) def download(package) file_name = package[:artifact_name] uri = "https://ci.appveyor.com/api/projects/#{APPVEYOR_ACCOUNT_NAME}/#{package[:appveyor_project_name]}/artifacts/#{file_name}?branch=#{package[:branch]}" + + #Path of package is predefined. This is typically the case for a hotfix when some packages should be fixed + uri = package[:uri] if package[:uri] download_file package[:appveyor_project_name], file_name, uri end