fix sandbox_env zip

This commit is contained in:
Nordup 2024-02-02 05:53:41 +04:00
parent 1117e20e72
commit ab5628556b
19 changed files with 18 additions and 21 deletions

View file

@ -1,3 +1,3 @@
fakechroot_enviroment/root/home/* game
fakechroot_enviroment/root/GATES-FILES/game fakechroot_enviroment/root/GATES-FILES/game
game fakechroot_enviroment/root/home/*

View file

@ -0,0 +1,16 @@
#!/bin/bash
sandbox_env_dir=../sandbox
sandbox_env_zip=$sandbox_env_dir/sandbox_env.zip
symlinks_dir=fakechroot_enviroment/root
symlinks_zip=$symlinks_dir/symlinks.zip
files_to_zip="fakechroot_enviroment run_game.sh list_child_processes.sh"
rm -f $sandbox_env_zip
mkdir $sandbox_env_dir
unzip -o $symlinks_zip -d $symlinks_dir
zip -ry $sandbox_env_zip $files_to_zip -x $symlinks_zip

View file

@ -1,6 +0,0 @@
#!/bin/bash
zip=../sandbox/sandbox_env.zip
rm $zip
zip -ry $zip fakechroot_enviroment run_game.sh list_child_processes.sh

Binary file not shown.