在gitlab ci阶段构建安装程序

在gitlab ci阶段构建安装程序,gitlab,inno-setup,gitlab-ci,Gitlab,Inno Setup,Gitlab Ci,在gitlab ci中,我设法构建一个解决方案,然后我需要构建一个安装程序。它失败,出现未知选项错误 在安装阶段,我遇到以下错误: Inno Setup 6命令行编译器 版权所有(C)1997-2020年Jordan Russell。版权所有 部分版权(C)2000-2020 Martijn Laan。版权所有 部分版权(C)2001-2004 Alex Yackimoff。版权所有 未知选项:-c 未知选项:-c Inno Setup 6命令行编译器 版权所有(C)1997-2020年Jord

在gitlab ci中,我设法构建一个解决方案,然后我需要构建一个安装程序。它失败,出现未知选项错误

在安装阶段,我遇到以下错误:

Inno Setup 6命令行编译器

版权所有(C)1997-2020年Jordan Russell。版权所有

部分版权(C)2000-2020 Martijn Laan。版权所有

部分版权(C)2001-2004 Alex Yackimoff。版权所有

未知选项:-c

未知选项:-c

Inno Setup 6命令行编译器

版权所有(C)1997-2020年Jordan Russell。版权所有

部分版权(C)2000-2020 Martijn Laan。版权所有

部分版权(C)2001-2004 Alex Yackimoff。版权所有

错误:作业失败:退出代码1

这是我的.gitlab-ci.yml文件:

stages:
 - build
 - setup

build:
 image: mono:latest
 stage: build
 script:
  - 'nuget restore'
  - 'MONO_IOMAP=case msbuild /t:Build /p:Configuration=Release;Platform="Any CPU"'
 artifacts:
  paths:
   - MyApp/bin/Release/
   - MyApp/Inno/
   
setup:
 image: amake/innosetup
 stage: setup
 script:
  - 'compil32 /cc "Path/To/MyAppSetup.iss"'
  #- 'iscc "Path/To/MyAppSetup.iss"'
  • 我是否使用了正确的innosetup命令(compil32)
  • 与iscc命令相同的错误
  • 我看不出-c选项来自哪里
  • 你知道哪里出了问题吗

参考资料:

由于我不知道问题出在哪里,我决定在innosetup中使用docker映像:

我需要一个docker步骤中的docker和
dind
以及一个docker docker

build:
  stage: build
  image: docker:18
  variables:
    DOCKER_DRIVER: overlay2
  services:
    - docker:dind
  script:
    - docker run --rm -v "$PWD:/work" amake/innosetup /dMyAppVersion=$MY_VERSION_NO "Path/To/MyAppSetup.iss"
  artifacts:
    paths:  
      - Path/To/bin/MyApp-*-Setup.exe

您从
iscc
发布的输出,而不是
compile32
iscc
确实没有任何
-c
/cc
开关。另请参见。@MartinPrikryl
/cc
在Inno安装帮助中提供。我没有设置
-c
选项,所以我不知道它来自哪里。
/cc
compile32
的开关,而不是
iscc
@MartinPrikryl我没有指定
/cc
iscc