Skip to content

Instantly share code, notes, and snippets.

@stefanszymanski
Created May 7, 2020 09:06
Show Gist options
  • Save stefanszymanski/12d2b72e5a2f32e605c98e5ace4590ad to your computer and use it in GitHub Desktop.
Save stefanszymanski/12d2b72e5a2f32e605c98e5ace4590ad to your computer and use it in GitHub Desktop.
Microsoft Teams update Makefile
URL = https://go.microsoft.com/fwlink/p/?linkid=2112886&clcid=0x407&culture=de-de&country=de
BUILD_DIR = build
VERSION = $(shell ls ${BUILD_DIR}/*.deb | awk -F"_" '{ print $$2 }')
clean:
rm -Rf build
init:
mkdir -p build
download: clean init
wget --content-disposition '${URL}' -P ${BUILD_DIR}
build: download
@echo Build version ${VERSION}
mkdir ${VERSION}
ar x ${BUILD_DIR}/*.deb --output=${BUILD_DIR}
tar -xf ${BUILD_DIR}/data.tar.xz -C ${VERSION}/
update: build
@echo Update to version ${VERSION}
rm current
ln -s ${VERSION} current
[Desktop Entry]
Terminal=false
Type=Application
Exec=sh -c 'LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so PULSE_LATENCY_MSEC=60 ~/build/microsoft-teams/current/usr/bin/teams'
Name=Microsoft Teams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment