Skip to content

winhelp-wine

winhelp.svg

inherite from

abcdesktopio/oc.template.wine

Arguments

"winhelp"

Displayname

Winhelp Wine

Path

/usr/bin/wine

Mimetype

application/hlp;

File extensions

"hlp;"

ACL

{
    "permit": [
        "all"
    ]
}

WM_CLASS

winhlp32.exe.Wine

The WM_CLASS property (of type STRING without control characters) contains two consecutive null-terminated strings. These specify the Instance and Class names to be used by both the client and the window manager for looking up resources for the application or as identifying information. to get the WM_CLASS property of an application, use the command line wmctrl -lx

PRE run command

PRE run command are run before the package install command

ENV WINEARCH=win64
ENV WINEDLLOVERRIDES="mscoree,mshtml="
USER $BUSER
RUN wineboot --init
RUN echo disable > $WINEPREFIX/.update-timestamp
COPY --chown=$BUSER:$BUSER user.reg system.reg /composer/.wine/

JSON dump

json source file winhelp-wine.d.3.0.json

{
    "acl": {
        "permit": [
            "all"
        ]
    },
    "args": "winhelp",
    "cat": "utilities",
    "preruncommands": [
        "ENV WINEARCH=win64",
        "ENV WINEDLLOVERRIDES=\"mscoree,mshtml=\"",
        "USER $BUSER",
        "RUN wineboot --init",
        "RUN echo disable > $WINEPREFIX/.update-timestamp",
        "COPY --chown=$BUSER:$BUSER user.reg system.reg /composer/.wine/"
    ],
    "debpackage": "",
    "icon": "winhelp.svg",
    "keyword": "wine,winhelp,text,hlp,help,wine",
    "launch": "winhlp32.exe.Wine",
    "name": "winhelp-wine",
    "displayname": "Winhelp Wine",
    "rules": {
        "homedir": {
            "default": true
        }
    },
    "mimetype": "application/hlp;",
    "fileextensions": "hlp;",
    "path": "/usr/bin/wine",
    "template": "abcdesktopio/oc.template.wine"
}

Install the builded image

Replace the ABCHOST var set to localhost by default to your own server ip address

ABCHOST=localhost
curl --output winhelp-wine.d.3.0.json https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/winhelp-wine.d.3.0.json
curl -X PUT -H 'Content-Type: text/javascript' http://$ABCHOST:30443/API/manager/image -d @winhelp-wine.d.3.0.json

Generated DockerFile source code

# Dynamic DockerFile application file for abcdesktopio generated by abcdesktopio/oc.apps/make.js
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
ARG TAG=dev
FROM abcdesktopio/oc.template.wine:$TAG
USER root
ENV WINEARCH=win64
ENV WINEDLLOVERRIDES="mscoree,mshtml="
USER $BUSER
RUN wineboot --init
RUN echo disable > $WINEPREFIX/.update-timestamp
COPY --chown=$BUSER:$BUSER user.reg system.reg /composer/.wine/
LABEL oc.icon="winhelp.svg"
LABEL oc.icondata="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCEtLSBDcmVhdGVkIHdpdGggSW5rc2NhcGUgKGh0dHA6Ly93d3cuaW5rc2NhcGUub3JnLykgLS0+Cjxzdmcgd2lkdGg9IjQ4IiBoZWlnaHQ9IjQ4IiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA0OCA0OC4wMDAwMDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KIDxkZWZzPgogIDxsaW5lYXJHcmFkaWVudCBpZD0ibGluZWFyR3JhZGllbnQ0NTM3IiB4MT0iLTQ3IiB4Mj0iLTEiIHkxPSIyNCIgeTI9IjI0IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgIDxzdG9wIHN0b3AtY29sb3I9IiMzMGEwZDQiIG9mZnNldD0iMCIvPgogICA8c3RvcCBzdG9wLWNvbG9yPSIjNDFhOGQ3IiBvZmZzZXQ9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CAxIDM4Ljk4MDQ2OSAyMy40MTQwNjIgQSAxNSAxNSAwIDAgMCAzOSAyMyBBIDE1IDE1IDAgMCAwIDI0IDggeiAiIG9wYWNpdHk9Ii4xIiBzdHJva2Utd2lkdGg9IjQuMjYyMyIvPgo8L3N2Zz4K"
LABEL oc.keyword="winhelp-wine,wine,winhelp,text,hlp,help,wine"
LABEL oc.cat="utilities"
LABEL oc.launch="winhlp32.exe.Wine"
LABEL oc.template="abcdesktopio/oc.template.wine"
ENV ARGS="winhelp"
LABEL oc.name="winhelp-wine"
LABEL oc.displayname="Winhelp Wine"
LABEL oc.path="/usr/bin/wine"
LABEL oc.type=app
LABEL oc.mimetype="application/hlp;"
LABEL oc.fileextensions="hlp;"
LABEL oc.rules="{\"homedir\":{\"default\":true}}"
LABEL oc.acl="{\"permit\":[\"all\"]}"
RUN for d in /usr/share/icons /usr/share/pixmaps ; do echo "testing link in $d"; if [ -d $d ] && [ -x /composer/safelinks.sh ] ; then echo "fixing link in $d"; cd $d ; /composer/safelinks.sh ; fi; done
ENV APPNAME "winhelp-wine"
ENV APPBIN "/usr/bin/wine"
LABEL oc.args="winhelp"
ENV APP "/usr/bin/wine"
USER root
RUN mkdir -p /var/secrets/abcdesktop/localaccount
RUN for f in passwd shadow group gshadow ; do if [ -f /etc/$f ] ; then  cp /etc/$f /var/secrets/abcdesktop/localaccount; rm -f /etc/$f; ln -s /var/secrets/abcdesktop/localaccount/$f /etc/$f; fi; done
USER balloon
CMD [ "/composer/appli-docker-entrypoint.sh" ]

Rebuild the image manually

Download the Dockerfile manually

Dockerfile for application winhelp-wine

wget https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/winhelp-wine.d

build the Dockerfile to create a container image

docker build --build-arg TAG=3.0 -f winhelp-wine.d -t winhelp-wine .

Install the new image

If you are using containerd as container runtime, use the ctr command line

If you are not running this bash command on your abcdesktop node Replace the ABCHOST variable set to localhost by default to your own server ip address

ABCHOST=localhost
docker inspect winhelp-wine > winhelp-wine.json
docker image save winhelp-wine -o winhelp-wine.tar
ctr -n k8s.io images import winhelp-wine.tar
curl -X PUT -H 'Content-Type: text/javascript' http://$ABCHOST:30443/API/manager/image -d @winhelp-wine.json