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:
parent
1a663ea5a8
commit
fac23b7b38
|
@ -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
|
||||||
|
|
|
@ -4,7 +4,7 @@ pipeline {
|
||||||
dockerfile {
|
dockerfile {
|
||||||
filename 'Dockerfile.jenkins'
|
filename 'Dockerfile.jenkins'
|
||||||
dir '.'
|
dir '.'
|
||||||
args '--privileged -v /var/run/docker.sock:/var/run/docker.sock'
|
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'
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
10
install.nsi
10
install.nsi
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue