37 lines
1.5 KiB
YAML
37 lines
1.5 KiB
YAML
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: build
|
|
image: mcr.microsoft.com/dotnet/sdk:9.0
|
|
commands:
|
|
- dotnet build --configuration Release SlucovaniRozpisek.csproj
|
|
|
|
- name: installer
|
|
image: git.ivasoft.cz/sw/docker-wine-dotnet
|
|
commands:
|
|
- wine tlbexp.exe bin/Release/net472/SlucovaniRozpisek.dll /out:bin/Release/net472/SlucovaniRozpisek.tlb
|
|
- wine Eazfuscator.NET.exe bin/Release/net9.0-windows/SlucovaniRozpisek.dll -k key.snk -n --newline-flush
|
|
# HACK Second build is success as first invocation fails
|
|
# dotnet exec <wix.dll> msi validate <path to SpravceDS.msi
|
|
# with error
|
|
# err:msidb:msi_commit_streams failed to write stream (hr = 0x80030102)
|
|
# err:msi:MsiDatabaseCommit Failed to commit streams!
|
|
# wix.exe : error WIX0216: An unexpected Win32 exception with error code 0x65B occurred: Function failed.
|
|
- echo wine cmd /c '"dotnet build --configuration Release --no-dependencies Setup.wixproj || dotnet build --configuration Release --no-dependencies Setup.wixproj"' > build.sh
|
|
# HACK Until dotnet 9 get released and have the bug https://github.com/dotnet/runtime/issues/98441 fixed
|
|
- apt update && apt install socat
|
|
- chmod +x build.sh
|
|
- socat -u EXEC:"./build.sh",pty,stderr,sigint,setsid,sane -
|
|
when:
|
|
event: tag
|
|
|
|
- name: gitea_release
|
|
image: plugins/gitea-release
|
|
settings:
|
|
api_key:
|
|
from_secret: drone_release
|
|
base_url: https://git.exprojekt.cz
|
|
files: 'bin/Release/**/*.msi'
|
|
when:
|
|
event: tag |