Can build AppImages more successfully.

- The meta/Recipes script doesn't run the post-install of debian
  packages, so some weren't installed correctly.
- This scheme lets vigil install into a container as usual.
- The files in the AppDir are calculated as the difference between
  the files in the initial debootstrapped container, and the
  container after the installation.
This commit is contained in:
Andrew Hamilton 2017-07-16 12:14:14 +01:00
parent 928462f8ff
commit d90d711703
9 changed files with 141 additions and 85 deletions

View file

@ -126,9 +126,9 @@ def build_gentoo():
def main():
WORK_PATH = (tempfile.mkdtemp(prefix="vigil-") if len(sys.argv) == 1
else sys.argv[1])
os.chdir(WORK_PATH)
work_path = (tempfile.mkdtemp(prefix="test_distributions-")
if len(sys.argv) == 1 else sys.argv[1])
os.chdir(work_path)
cmd("sudo apt-get install -y systemd-container debootstrap xz-utils wget")
# FIX: Reenable: fedora debian archlinux opensuse pixel gentoo
for distribution in ["ubuntu"]:
@ -151,7 +151,7 @@ def main():
globals()["remove_" + distribution]()
except KeyError:
cmd("sudo rm -rf " + distribution)
os.rmdir(WORK_PATH)
os.rmdir(work_path)
print("Finished.")