commit
226c065562
|
@ -0,0 +1 @@
|
|||
.idea/
|
|
@ -0,0 +1,25 @@
|
|||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Dockerfile" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
|
||||
<deployment type="dockerfile">
|
||||
<settings>
|
||||
<option name="imageTag" value="jolheiser/woodpecker-ahk" />
|
||||
<option name="buildOnly" value="true" />
|
||||
<option name="containerName" value="woodpecker-ahk" />
|
||||
<option name="envVars">
|
||||
<list>
|
||||
<DockerEnvVarImpl>
|
||||
<option name="name" value="PLUGIN_SCRIPT" />
|
||||
<option name="value" value="test.ahk" />
|
||||
</DockerEnvVarImpl>
|
||||
<DockerEnvVarImpl>
|
||||
<option name="name" value="PLUGIN_OUT" />
|
||||
<option name="value" value="test.exe" />
|
||||
</DockerEnvVarImpl>
|
||||
</list>
|
||||
</option>
|
||||
<option name="sourceFilePath" value="Dockerfile" />
|
||||
</settings>
|
||||
</deployment>
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
|
@ -0,0 +1,15 @@
|
|||
FROM i386/alpine
|
||||
|
||||
LABEL com.jojodev.image.authors="john.olheiser@gmail.com"
|
||||
|
||||
RUN apk update && \
|
||||
apk add wine xvfb xvfb-run wget && \
|
||||
winecfg && \
|
||||
mkdir -p /app/compiler && \
|
||||
mkdir /app/bin && \
|
||||
wget --no-check-certificate https://autohotkey.com/download/1.1/Ahk2Exe112401.zip -O /tmp/ahk.zip && \
|
||||
unzip /tmp/ahk.zip -d /app/compiler
|
||||
|
||||
COPY compile.sh /app/compile.sh
|
||||
|
||||
ENTRYPOINT ["/bin/sh", "/app/compile.sh"]
|
|
@ -0,0 +1,19 @@
|
|||
Copyright (c) 2022 John Olheiser
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
|
@ -0,0 +1,13 @@
|
|||
# woodpecker-ahk
|
||||
|
||||
A [woodpecker](https://woodpecker-ci.org) plugin to compile [AHK](https://www.autohotkey.com/) scripts to executables.
|
||||
|
||||
## Settings
|
||||
|
||||
- `script`: The path to the script to compile.
|
||||
- `icon`: The path to the icon for the executable.
|
||||
- `out`: The output path for the executable (remember to add the `.exe` suffix).
|
||||
|
||||
## License
|
||||
|
||||
[MIT](LICENSE)
|
|
@ -0,0 +1,5 @@
|
|||
if [ -z "$PLUGIN_ICON" ]; then
|
||||
xvfb-run -a wine /app/compiler/Ahk2Exe.exe /in ${PLUGIN_SCRIPT} /out ${PLUGIN_OUT}
|
||||
else
|
||||
xvfb-run -a wine /app/compiler/Ahk2Exe.exe /in ${PLUGIN_SCRIPT} /icon ${PLUGIN_ICON} /out ${PLUGIN_OUT}
|
||||
fi
|
Loading…
Reference in New Issue