... | ... | @@ -65,210 +65,12 @@ at the end of the menu add a loop |
|
|
|
|
|
### config.json [config.json](uploads/ce73c926eb2804fd27ca6ee0f7128b83/config.json)
|
|
|
|
|
|
```
|
|
|
{
|
|
|
"repositories": [
|
|
|
{
|
|
|
"name": "ProviderName_1",
|
|
|
"type": "provider",
|
|
|
"repoUrl": "https://gitlab-ci-token:${CI_JOB_TOKEN}@git.cover3d.com/CustomerName/ProviderName_1"
|
|
|
},
|
|
|
{
|
|
|
"name": "ProviderName_2",
|
|
|
"type": "provider",
|
|
|
"repoUrl": "https://gitlab-ci-token:${CI_JOB_TOKEN}@git.cover3d.com/CustomerName/ProviderName_2"
|
|
|
}
|
|
|
],
|
|
|
"prices": [
|
|
|
{
|
|
|
"source": "ProviderName_1",
|
|
|
"version": "2303.022"
|
|
|
},
|
|
|
{
|
|
|
"source": "ProviderName_2",
|
|
|
"version": "2303.041"
|
|
|
}
|
|
|
],
|
|
|
"packages": []
|
|
|
}
|
|
|
|
|
|
```
|
|
|
### .gitlab-ci.yml [.gitlab-ci.yml](uploads/843a3f193f187b364e37ffcd870fe049/.gitlab-ci.yml)
|
|
|
|
|
|
```
|
|
|
variables:
|
|
|
GIT_DEPTH: 1
|
|
|
|
|
|
stages:
|
|
|
- clean
|
|
|
- price
|
|
|
- compile
|
|
|
- package
|
|
|
- notify
|
|
|
|
|
|
clean:
|
|
|
timeout: 45m
|
|
|
stage: clean
|
|
|
variables:
|
|
|
ErrorActionPreference: stop
|
|
|
script:
|
|
|
- .\Scripts\01_clean.ps1
|
|
|
tags:
|
|
|
- parametrization-build
|
|
|
only:
|
|
|
- master
|
|
|
|
|
|
price:
|
|
|
timeout: 2h
|
|
|
stage: price
|
|
|
variables:
|
|
|
ErrorActionPreference: stop
|
|
|
script:
|
|
|
- .\Scripts\02_clone.ps1 -repositoryType provider
|
|
|
- .\Scripts\02_clone.ps1 -repositoryType price
|
|
|
- .\Scripts\03_price.ps1
|
|
|
artifacts:
|
|
|
name: CustomerName_providers_priced
|
|
|
paths:
|
|
|
- .\ProviderName_1\*
|
|
|
- .\ProviderName_2\*
|
|
|
|
|
|
tags:
|
|
|
- parametrization-build
|
|
|
only:
|
|
|
- master
|
|
|
|
|
|
compile:
|
|
|
timeout: 8h
|
|
|
stage: compile
|
|
|
variables:
|
|
|
ErrorActionPreference: stop
|
|
|
script:
|
|
|
- .\Scripts\02_junction.ps1
|
|
|
- .\Scripts\04_compile.ps1
|
|
|
artifacts:
|
|
|
name: CustomerName_providers_compiled
|
|
|
paths:
|
|
|
- .\ProviderName_1\*
|
|
|
- .\ProviderName_2\*
|
|
|
|
|
|
|
|
|
expire_in: 1 week
|
|
|
tags:
|
|
|
- parametrization-build
|
|
|
only:
|
|
|
- master
|
|
|
|
|
|
package:
|
|
|
timeout: 45m
|
|
|
stage: package
|
|
|
variables:
|
|
|
ErrorActionPreference: stop
|
|
|
script:
|
|
|
- .\Scripts\02_junction.ps1
|
|
|
- .\Scripts\05_package.ps1
|
|
|
- .\Scripts\06_sign.ps1
|
|
|
- .\Scripts\07_upload.ps1
|
|
|
tags:
|
|
|
- parametrization-build
|
|
|
artifacts:
|
|
|
name: CustomerName_providers_packaged
|
|
|
paths:
|
|
|
- .\Output\*
|
|
|
expire_in: 1 week
|
|
|
only:
|
|
|
- master
|
|
|
|
|
|
notify:
|
|
|
timeout: 5m
|
|
|
stage: notify
|
|
|
dependencies: []
|
|
|
variables:
|
|
|
ErrorActionPreference: stop
|
|
|
script:
|
|
|
- .\Scripts\08_notify.ps1
|
|
|
tags:
|
|
|
- parametrization-build
|
|
|
only:
|
|
|
- master
|
|
|
|
|
|
|
|
|
```
|
|
|
### CustomerName.iss [CustomerName.iss](uploads/ba8e8e7f9f865b57f95ae0a7f6e86dc2/CustomerName.iss)
|
|
|
|
|
|
- Be careful to change the uuid for each supplier
|
|
|
- https://www.uuidgenerator.net/version4
|
|
|
|
|
|
```
|
|
|
; Script generated by the Inno Setup Script Wizard.
|
|
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
|
|
|
|
|
;#define ProviderName "ProviderName_1"
|
|
|
;#define ProviderVersion "2106.123"
|
|
|
;#define ProviderSourceFolderPath "C:\Cover\XLib\Providers\ProviderName_1"
|
|
|
#define ProviderPublisher "Cover Group"
|
|
|
#define ProviderURL "https://www.cover3d.com/"
|
|
|
|
|
|
[Setup]
|
|
|
; Be careful to change the uuid for each supplier
|
|
|
; https://www.uuidgenerator.net/version4
|
|
|
AppId={{8550562a-f7ca-4f7f-af8c-3d975c621c42}
|
|
|
AppName=Cover provider | {#ProviderName}
|
|
|
AppVersion={#ProviderVersion}
|
|
|
|
|
|
AppPublisher={#ProviderPublisher}
|
|
|
AppPublisherURL={#ProviderURL}
|
|
|
AppSupportURL={#ProviderURL}
|
|
|
AppUpdatesURL={#ProviderURL}
|
|
|
CreateAppDir=no
|
|
|
ChangesAssociations=yes
|
|
|
|
|
|
|
|
|
OutputBaseFilename=Cover_provider_{#ProviderName}_{#ProviderVersion}
|
|
|
;OutputDir={#ProviderOutputFolderPath}
|
|
|
Compression=lzma
|
|
|
SolidCompression=yes
|
|
|
WizardStyle=modern
|
|
|
|
|
|
[Languages]
|
|
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
|
|
Name: "dutch"; MessagesFile: "compiler:Languages\Dutch.isl"
|
|
|
Name: "french"; MessagesFile: "compiler:Languages\French.isl"
|
|
|
Name: "german"; MessagesFile: "compiler:Languages\German.isl"
|
|
|
Name: "portuguese"; MessagesFile: "compiler:Languages\Portuguese.isl"
|
|
|
Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"
|
|
|
|
|
|
[Files]
|
|
|
|
|
|
;--------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
;paths for providers
|
|
|
Source: "{#ProviderSourceFolderPath}\**"; Excludes: "*.bak"; DestDir: "{code:Get_XLibData_Database_Path}\Providers\{#ProviderName}"; Flags: ignoreversion recursesubdirs
|
|
|
;--------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
[InstallDelete]
|
|
|
Type: filesandordirs; Name:"{code:Get_XLibData_Database_Path}\Providers\{#ProviderName}\tree"
|
|
|
Type: filesandordirs; Name:"{code:Get_XLibData_Database_Path}\Providers\{#ProviderName}\compiler"
|
|
|
|
|
|
[Run]
|
|
|
|
|
|
[Code]
|
|
|
|
|
|
{-----------------------------------------------------------------------------------------------------------------------}
|
|
|
function Get_XLibData_Database_Path(Param: string): string;
|
|
|
begin
|
|
|
result:='';
|
|
|
if isTaskSelected('tsk_singleuser') then
|
|
|
begin
|
|
|
RegQueryStringValue(HKEY_CURRENT_USER, 'Software\CoverGroup\Cover\XLib\Path', 'XLibData_Database_Path', result);
|
|
|
end
|
|
|
else
|
|
|
begin
|
|
|
RegQueryStringValue(HKEY_LOCAL_MACHINE, 'Software\CoverGroup\Cover\XLib\Path', 'XLibData_Database_Path', result);
|
|
|
end;
|
|
|
end;
|
|
|
{-----------------------------------------------------------------------------------------------------------------------}
|
|
|
|
|
|
[Registry]
|
|
|
|
|
|
|
|
|
``` |
|
|
\ No newline at end of file |