Add MacOS installer
This commit is contained in:
parent
6215d5dcb1
commit
71a25cce96
6
.install/macos/build.sh
Normal file
6
.install/macos/build.sh
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
VERSION='3.0.0'
|
||||
|
||||
rm facefusion_$VERSION.pkg
|
||||
pkgbuild --root . --scripts . --identifier com.facefusion.installer --version $VERSION --install-location $HOME/FaceFusion facefusion_$VERSION.pkg
|
33
.install/macos/postinstall
Executable file
33
.install/macos/postinstall
Executable file
@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
|
||||
VERSION='3.0.0'
|
||||
TAG='next'
|
||||
|
||||
echo 'Installing Homebrew'
|
||||
curl https://github.com/Homebrew/brew/releases/download/4.3.19/Homebrew-4.3.19.pkg --create-dirs --insecure --location --continue-at - --output Homebrew-4.3.19.pkg
|
||||
installer -pkg Homebrew-4.3.19.pkg -target /
|
||||
|
||||
echo 'Installing Git'
|
||||
brew install git
|
||||
|
||||
echo 'Installing Conda'
|
||||
brew install miniconda
|
||||
|
||||
echo 'Downloading Application'
|
||||
mkdir $HOME/FaceFusion
|
||||
cd $HOME/FaceFusion
|
||||
rm -rf $VERSION
|
||||
|
||||
git config http.sslVerify false
|
||||
git clone https://github.com/facefusion/facefusion $VERSION --branch $TAG
|
||||
|
||||
echo 'Preparing Environment'
|
||||
conda init --all
|
||||
conda create --name facefusion python=3.10 -y
|
||||
|
||||
echo 'Installing FFmpeg'
|
||||
bash -c 'conda run -n facefusion conda install conda-forge::ffmpeg=7.0.2 --yes'
|
||||
|
||||
echo 'Installing Application'
|
||||
bash -c 'conda run -n facefusion python install.py --onnxruntime default'
|
||||
|
3
.install/macos/postuninstall
Executable file
3
.install/macos/postuninstall
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
rm -rf $HOME/FaceFusion
|
Loading…
Reference in New Issue
Block a user