Make the build work in Jenkins (#1)

Reviewed-on: #1
Co-authored-by: retropikzel <retropikzel@iki.fi>
Co-committed-by: retropikzel <retropikzel@iki.fi>
This commit is contained in:
retropikzel 2024-10-12 00:42:33 -04:00 committed by Retropikzel
parent 1a663ea5a8
commit fac23b7b38
4 changed files with 19 additions and 5 deletions

View File

@ -1,5 +1,6 @@
FROM schemers/gauche
RUN echo "deb http://ftp.de.debian.org/debian bookworm main" > /etc/apt/sources.list
RUN apt update && apt install -y wine
RUN dpkg --add-architecture i386
RUN apt update && apt install -y wine32 wine64 make wget
COPY ./executables/nsis-3.10-setup.exe /setup.exe
RUN wine setup.exe /S

3
Jenkinsfile vendored
View File

@ -4,7 +4,7 @@ pipeline {
dockerfile {
filename 'Dockerfile.jenkins'
dir '.'
args '--privileged -v /var/run/docker.sock:/var/run/docker.sock'
args '-u root --privileged'
}
}
@ -15,6 +15,7 @@ pipeline {
stages {
stage("Build") {
steps {
sh 'whoami'
sh 'make'
archiveArtifacts artifacts: 'setup_*.exe'
}

View File

@ -7,15 +7,17 @@ there might be more than one implementation.
## Installation
Download the latest setup executable from Jenkins and run it.
Download the latest setup executable from
[Jenkins](https://jenkins.scheme.org/job/rinne/job/snow-fort-windows-installer/job/main/)
and run it.
## Using the libraries
Add the installation path to your implementations load path:
%ProgramFiles%/snow
%SNOW_LIBRARY_PATH%
For example with Gauche:
gosh.exe -r7 -A "%ProgramFiles%/snow" main.scm
gosh.exe -r7 -A "%SNOW_LIBRARY_PATH%" main.scm

View File

@ -1,3 +1,5 @@
OutFile "setup_snow.exe"
InstallDir "$PROGRAMFILES64"
@ -6,5 +8,13 @@ Section
RMDir "$INSTDIR"
File /r "snow"
Push "$INSTDIR"
!include "winmessages.nsh"
!define env_hklm 'HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"'
!define env_hkcu 'HKCU "Environment"'
WriteRegExpandStr ${env_hklm} SNOW_LIBRARY_PATH "$PROGRAMFILES64/snow"
WriteRegExpandStr ${env_hkcu} SNOW_LIBRARY_PATH "$PROGRAMFILES64/snow"
SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000
SectionEnd