@@ -867,7 +867,7 @@ class TlkRecipe
867867 $s = New-Changelog - Format ' RpmPackaging' - InputFile $UpstreamChangelogFile - Packager $Packager - Email $Email
868868 Set-Content - Path $RpmPackagingChangelogFile - Value $s
869869
870- $FpmArgs = @ (
870+ $FpmOptions = @ (
871871 ' --force'
872872 ' --verbose'
873873 ' -s' , ' dir'
@@ -885,23 +885,25 @@ class TlkRecipe
885885 ' --after-install' , " $InputPackagePath /$ ( $this.Product ) /rpm/postinst"
886886 ' --before-remove' , " $InputPackagePath /$ ( $this.Product ) /rpm/prerm"
887887 ' --after-remove' , " $InputPackagePath /$ ( $this.Product ) /rpm/postrm"
888- ' --'
888+ )
889+
890+ $FpmFiles = @ (
889891 " $Executable =/usr/bin/$PkgName "
890892 " $RpmUpstreamChangelogFile =/usr/share/doc/$PkgName /ChangeLog"
891893 " $CopyrightFile =/usr/share/doc/$PkgName /copyright"
892894 )
893895
894896 if ($this.Product -eq " gateway" ) {
895- $FpmArgs += @ (
896- ' --rpm-attr ' , ' 644,root,root:/usr/lib/systemd/system/devolutions-gateway.service ' ,
897+ $FpmOptions += ' --rpm-attr ' , ' 644,root,root:/usr/lib/systemd/system/devolutions-gateway.service '
898+ $FpmFiles += @ (
897899 " $InputPackagePath /gateway/rpm/service=/usr/lib/systemd/system/devolutions-gateway.service" ,
898900 " $DGatewayWebClient =/usr/share/devolutions-gateway/webapp/client" ,
899901 " $DGatewayWebPlayer =/usr/share/devolutions-gateway/webapp/player" ,
900902 " $DGatewayLibXmf =/usr/lib/devolutions-gateway/libxmf.so"
901903 )
902904 }
903905
904- & ' fpm' @FpmArgs | Out-Host
906+ & ' fpm' @FpmOptions ' -- ' @FpmFiles | Out-Host
905907
906908 if (Test-Path Env:TARGET_OUTPUT_PATH) {
907909 $TargetOutputPath = $Env: TARGET_OUTPUT_PATH
0 commit comments