.
This commit is contained in:
parent
c04f9a0172
commit
45602c3b66
58
build-teams-cp.sh
Normal file
58
build-teams-cp.sh
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#set -x
|
||||||
|
#trap read debug
|
||||||
|
|
||||||
|
# Creating an IGELOS CP for Microsoft Teams
|
||||||
|
## Development machine (Ubuntu 18.04)
|
||||||
|
sudo apt install curl -y
|
||||||
|
sudo apt install unzip -y
|
||||||
|
sudo curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
|
||||||
|
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main" > /etc/apt/sources.list.d/teams.list'
|
||||||
|
sudo apt-get update
|
||||||
|
|
||||||
|
mkdir build_tar
|
||||||
|
cd build_tar
|
||||||
|
|
||||||
|
apt-get download teams
|
||||||
|
apt-get download libgnome-keyring0
|
||||||
|
|
||||||
|
mkdir -p custom/teams
|
||||||
|
|
||||||
|
dpkg -x teams_* custom/teams
|
||||||
|
dpkg -x libg* custom/teams
|
||||||
|
|
||||||
|
mv custom/teams/usr/share/applications/ custom/teams/usr/share/applications.mime
|
||||||
|
mkdir -p custom/teams/userhome/.config/Microsoft
|
||||||
|
|
||||||
|
wget https://github.com/IGEL-Community/IGEL-Custom-Partitions/raw/master/CP_Packages/Unified_Communications/Microsoft_Teams.zip
|
||||||
|
|
||||||
|
unzip Microsoft_Teams.zip -d custom
|
||||||
|
mkdir -p custom/teams/config/bin
|
||||||
|
mkdir -p custom/teams/lib/systemd/system
|
||||||
|
mv custom/target/build/teams_cp_apparmor_reload custom/teams/config/bin
|
||||||
|
mv custom/target/build/igel-teams-cp-apparmor-reload.service custom/teams/lib/systemd/system/
|
||||||
|
mv custom/target/build/teams-cp-init-script.sh custom
|
||||||
|
|
||||||
|
cd custom
|
||||||
|
|
||||||
|
# edit inf file for version number
|
||||||
|
mkdir getversion
|
||||||
|
cd getversion
|
||||||
|
ar -x ../../teams_*
|
||||||
|
tar xf control.tar.gz ./control
|
||||||
|
VERSION=$(grep Version control | cut -d " " -f 2)
|
||||||
|
echo "Version is: " ${VERSION}
|
||||||
|
cd ..
|
||||||
|
sed -i "/^version=/c version=\"${VERSION}\"" target/teams.inf
|
||||||
|
echo "teams.inf file is:"
|
||||||
|
cat target/teams.inf
|
||||||
|
|
||||||
|
# new build process into zip file
|
||||||
|
tar cvjf target/teams.tar.bz2 teams teams-cp-init-script.sh
|
||||||
|
zip -g ../Microsoft_Teams.zip target/teams.tar.bz2 target/teams.inf
|
||||||
|
zip -d ../Microsoft_Teams.zip "target/build/*" "target/igel/*" "target/target/*"
|
||||||
|
mv ../Microsoft_Teams.zip ../../Microsoft_Teams-${VERSION}_igel01.zip
|
||||||
|
|
||||||
|
cd ../..
|
||||||
|
rm -rf build_tar
|
||||||
|
|
@ -9,6 +9,15 @@ if NOT EXIST %EXE% (
|
|||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
|
echo killing Teams process ...
|
||||||
|
taskkill /F /IM teams.exe 2>nul
|
||||||
|
|
||||||
|
echo cleaning cache ...
|
||||||
|
deltree "%USERPROFILE%\AppData\Roaming\Microsoft\Teams"
|
||||||
|
deltree "%USERPROFILE%\AppData\Local\Microsoft\Teams"
|
||||||
|
deltree "%USERPROFILE%\AppData\Local\Microsoft\TeamsMeetingAddin"
|
||||||
|
deltree "%USERPROFILE%\AppData\Local\Microsoft\TeamsPresenceAddin"
|
||||||
|
|
||||||
echo installing Microsoft Teams ...
|
echo installing Microsoft Teams ...
|
||||||
start /wait %EXE% -s
|
start /wait %EXE% -s
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user