Fixing the build

This commit is contained in:
retropikzel 2024-10-12 07:47:36 +03:00
commit 7ce258d771
4 changed files with 19 additions and 5 deletions

View File

@ -1,5 +1,6 @@
FROM schemers/gauche FROM schemers/gauche
RUN echo "deb http://ftp.de.debian.org/debian bookworm main" > /etc/apt/sources.list 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 COPY ./executables/nsis-3.10-setup.exe /setup.exe
RUN wine setup.exe /S RUN wine setup.exe /S

3
Jenkinsfile vendored
View File

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

View File

@ -7,15 +7,17 @@ there might be more than one implementation.
## Installation ## 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 ## Using the libraries
Add the installation path to your implementations load path: Add the installation path to your implementations load path:
%ProgramFiles%/snow %SNOW_LIBRARY_PATH%
For example with Gauche: 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" OutFile "setup_snow.exe"
InstallDir "$PROGRAMFILES64" InstallDir "$PROGRAMFILES64"
@ -6,5 +8,13 @@ Section
RMDir "$INSTDIR" RMDir "$INSTDIR"
File /r "snow" File /r "snow"
Push "$INSTDIR" 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 SectionEnd