Commit 3230d158 authored by LIGNEUL CLEMENT's avatar LIGNEUL CLEMENT
Browse files

simplify installation + add python files in executable

parent 581e1d3e
UNAME:=$(shell uname)
install:
@echo "\n##### Install modules #####\n"
@echo "\n##### Installing the modules #####\n"
npm install
@echo "\n##### Start the packaging #####\n"
@echo "\n##### Beginning of the packaging #####\n"
@echo "\n##### Initialization #####\n"
......@@ -11,6 +14,16 @@ install:
npx nodegui-packer --init EASEA-compiler-app
@echo "\n##### Adding additional files #####\n"
ifeq ($(UNAME), Linux)
cp -rf src/plot.py src/3D_plot.py documentation/ deploy/linux/EASEA-compiler-app/
endif
ifeq ($(UNAME), Darwin)
cp -rf src/plot.py src/3D_plot.py documentation/ deploy/darwin/EASEA-compiler-app/
endif
@echo "\n##### Build dist #####\n"
npm run build
......@@ -18,25 +31,20 @@ install:
@echo "\n##### Packaging in progress #####\n"
npx nodegui-packer --pack ./dist
@echo "\n##### Copy additional files #####\n"
find 'deploy/' -type d -name doc | sed 's/doc//' | xargs -n 1 cp -v src/plot.py
find 'deploy/' -type d -name doc | sed 's/doc//' | xargs -n 1 cp -v src/3D_plot.py
find 'deploy/' -type d -name doc | sed 's/doc//' | xargs -n 1 cp -rv documentation/
ifneq ($(TYPE), DEV)
find 'deploy/' -type d -name doc | sed 's/doc//' | xargs -n 1 cp -rt ./
rm -rf deploy/
endif
# else keep the deploy dir
rm -rf deploy/ dist/
mv EASEA-compiler-app/*.AppImage EASEA-compiler-app/easea-compiler-app
sudo cp EASEA-compiler-app/easea-compiler-app /bin
@echo "\n##### Packaging finished #####\n"
update-documentation:
asciidoctor documentation/*.adoc
clean:
rm -rf deploy dist EASEA-compiler-app
\ No newline at end of file
uninstall:
rm -rf deploy dist EASEA-compiler-app
sudo rm -rf /bin/easea-compiler-app
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment