#!/bin/sh # tce-load -i compiletc touch mymarker sudo pip3 install appdirs sudo find / -not -type 'd' -cnewer mymarker | grep -v "\/proc\/" | grep -v "^\/sys\/" | tee files echo "Edit the files and remove unnecessary ones." editor files sudo tar -T files --numeric-owner -zcvf python3.6-appdirs.tce mkdir /tmp/pkg cp python3.6-appdirs.tce /tmp/app cd /tmp/app sudo tar xf python3.6-appdirs.tce rm python3.6-appdirs.tce cd .. sudo mksquashfs app/ extension.tcz echo "Done."