Skip to content

Updated github actions to add wsl1-specific builds to the releases #2182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 24 additions & 12 deletions installers/deb/build_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,17 @@ popd >/dev/null 2>/dev/null


# For linux and wsl create packages for each arch
for wslp in linux wsl
for wslp in linux wsl2 wsl1
do
# For each arch create a deb file
for arch_base in x86_64^amd64 armv7l^armhf aarch64^arm64
do
if [[ ${wslp} = wsl && ${arch_base} = armv7l^armhf ]];
if [ "${arch_base}" = armv7l^armhf ]
then
continue
if [ "${wslp}" = wsl1 ] || [ "${wslp}" = wsl2 ]
then
continue
fi
fi
arch=${arch_base%^*}
debian_arch=${arch_base#*^}
Expand All @@ -99,8 +102,14 @@ do
MEDLEYDIR=${il_dir#${pkg_dir}}/medley
# Maiko and Medley files to il_dir (/usr/local/interlisp)
mkdir -p ${il_dir}
tar -x -z -C ${il_dir} \
-f "${tarball_dir}/maiko-${maiko_release}-linux.${arch}.tgz"
if [ "${wslp}" = wsl1 ]
then
tar -x -z -C ${il_dir} \
-f "${tarball_dir}/maiko-${maiko_release}-wsl1.${arch}.tgz"
else
tar -x -z -C ${il_dir} \
-f "${tarball_dir}/maiko-${maiko_release}-linux.${arch}.tgz"
fi
tar -x -z -C ${il_dir} \
-f "${tarball_dir}/medley-${medley_release}-runtime.tgz"
tar -x -z -C ${il_dir} \
Expand All @@ -117,14 +126,17 @@ do
sed -e "s>--MEDLEYDIR-->${MEDLEYDIR}>g" <postrm >${pkg_dir}/DEBIAN/postrm
chmod +x ${pkg_dir}/DEBIAN/postrm
# For wsl scripts, include the vncviewer.exe
if [[ ${wslp} = wsl && ${arch} = x86_64 ]];
if [ "${wslp}" = wsl1 ] || [ "${wslp}" = wsl2 ]
then
pushd ./tmp >/dev/null
rm -rf vncviewer64-1.12.0.exe
wget -q https://sourceforge.net/projects/tigervnc/files/stable/1.12.0/vncviewer64-1.12.0.exe
popd >/dev/null
mkdir -p ${il_dir}/wsl
cp -p tmp/vncviewer64-1.12.0.exe ${il_dir}/wsl/vncviewer64-1.12.0.exe
if [ "${arch}" = x86_64 ]
then
pushd ./tmp >/dev/null
rm -rf vncviewer64-1.12.0.exe
wget -q https://sourceforge.net/projects/tigervnc/files/stable/1.12.0/vncviewer64-1.12.0.exe
popd >/dev/null
mkdir -p ${il_dir}/wsl
cp -p tmp/vncviewer64-1.12.0.exe ${il_dir}/wsl/vncviewer64-1.12.0.exe
fi
fi
#
# Make sure all files are owned by root
Expand Down
File renamed without changes.
9 changes: 9 additions & 0 deletions installers/deb/control-wsl2
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Package: medley-interlisp
Version: 1.0.0
Release: --RELEASE--
Maintainer: [email protected]
Description: Medley Interlisp for Linux
Homepage: https://github.com/interlisp/medley
Architecture: --ARCH--
Depends: wslu ( >= 4.1 ) | wslu ( << 4.0 ), tigervnc-standalone-server, tigervnc-xorg-extension

6 changes: 0 additions & 6 deletions scripts/medley/medley.command
Original file line number Diff line number Diff line change
Expand Up @@ -1002,12 +1002,6 @@ do
shift
done

# if running on WSL1, force use_vnc
if [ "${wsl}" = true ] && [ "${wsl_ver}" -eq 1 ]
then
use_vnc=true
fi


# Process run_id
# if it doesn't end in #, make sure that there is not another instance currently running with this same id
Expand Down
6 changes: 0 additions & 6 deletions scripts/medley/medley_args.sh
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,3 @@ do
shift
done

# if running on WSL1, force use_vnc
if [ "${wsl}" = true ] && [ "${wsl_ver}" -eq 1 ]
then
use_vnc=true
fi