Skip to content

Commit

Permalink
remove the tar.gz after usage
Browse files Browse the repository at this point in the history
  • Loading branch information
KenCorma committed Oct 27, 2024
1 parent 651e4d0 commit 710c0f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 7 additions & 4 deletions scripts/signPython.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
python -m pip install --upgrade pip
python -m pip install --upgrade pip >/dev/null
wait
pip install comfy-cli
pip install comfy-cli >/dev/null
wait
ls
cd assets
comfy --skip-prompt --here install --fast-deps --m-series --manager-url https://github.com/Comfy-Org/manager-core
comfy --skip-prompt --here install --fast-deps --m-series --manager-url https://github.com/Comfy-Org/manager-core >/dev/null
wait
cd ComfyUI
cd ..
Expand All @@ -18,10 +18,13 @@ tar -xzf python.tgz -C python2/
rm python.tgz
find . -type l ! -exec test -e {} \; -delete
wait
find . -name '*.tar.gz' -delete
wait
ls
echo Sign Libs and Bins
cd python2/python/
filelist=("lib/libpython3.12.dylib" "lib/python3.12/lib-dynload/_crypt.cpython-312-darwin.so" "bin/uv" "bin/uvx" "bin/python3.12")
for file in ${filelist[@]}; do codesign --sign "Developer ID Application: Drip Artificial Inc" --force --timestamp --options runtime --entitlements ../../../scripts/entitlements.mac.plist "$file"; done
for file in ${filelist[@]}; do codesign --sign 48F7750D708A9F1506A3DD335ADE537ED2FEA768 --force --timestamp --options runtime --entitlements ../../../builderStaticFiles/entitlements.mac.plist "$file"; done
echo Rezip
cd ../..
mv python python3
Expand Down
2 changes: 2 additions & 0 deletions scripts/todesktop/postInstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ async function postInstall() {
const shPath = path.join(dirPath, 'scripts', 'signPython.sh');
const result2 = spawnSync('sed', [`-i ''` , `'s/\\r//g'` , shPath],{shell:true,stdio:'inherit'});
const result = spawnSync('sh', [shPath],{shell:true,stdio: 'pipe'});
console.log(result.stdout.toString());
console.log(result.stderr.toString());
// console.log(result);
fs.createFileSync('./src/macpip.txt');
fs.writeFileSync('./src/macpip.txt',JSON.stringify({
Expand Down

0 comments on commit 710c0f6

Please sign in to comment.