move build and install dirs outside src on windows

This commit is contained in:
alemuntoni 2022-05-17 15:38:54 +02:00
parent 445f870215
commit 58d9cdba3b
8 changed files with 47 additions and 49 deletions

View File

@ -3,11 +3,10 @@ name: AutoMergeMainOnDevel
on:
push:
branches:
- 'main'
- 'cnr-isti-vclab/main'
jobs:
auto_merge:
if: github.repository_owner == 'cnr-isti-vclab'
name: Automatic Merge Main On Devel
runs-on: ubuntu-latest

View File

@ -189,7 +189,7 @@ jobs:
bash scripts/${{ runner.os }}/1_build.sh --${{ matrix.precision }}
- name: Sign Portable content
run: |
.\scripts\Windows\internal\sign_dlls.ps1 -pssw '${{ secrets.WIN_CERTIFICATE_PSSW }}' -path 'src\install\'
.\scripts\Windows\internal\sign_dlls.ps1 -pssw '${{ secrets.WIN_CERTIFICATE_PSSW }}' -path 'install\'
- name: Deploy
shell: C:\shells\msys2bash.cmd {0}
run: |
@ -201,28 +201,28 @@ jobs:
- name: Create Installer
uses: joncloud/makensis-action@v1
with:
script-file: "src/install/meshlab_final.nsi"
script-file: "install/meshlab_final.nsi"
- name: Move Installer
shell: bash
run: |
mkdir src/installer
mv src/install/MeshLab*-windows.exe src/installer
rm src/install/meshlab_final.nsi
rm src/install/ExecWaitJob.nsh
rm src/install/FileAssociation.nsh
mkdir installer
mv install/MeshLab*-windows.exe installer
rm install/meshlab_final.nsi
rm install/ExecWaitJob.nsh
rm install/FileAssociation.nsh
- name: Sign Installer
run: |
.\scripts\Windows\internal\sign_dlls.ps1 -pssw '${{ secrets.WIN_CERTIFICATE_PSSW }}' -path 'src\installer\'
.\scripts\Windows\internal\sign_dlls.ps1 -pssw '${{ secrets.WIN_CERTIFICATE_PSSW }}' -path 'installer\'
- name: Uploading MeshLab Portable
uses: actions/upload-artifact@v2
with:
name: meshlab_windows_portable${{steps.envs.outputs.artifact_suffix}}
path: src/install
path: install
- name: Upload Meshlab Installer
uses: actions/upload-artifact@v2
with:
name: meshlab_windows_installer${{steps.envs.outputs.artifact_suffix}}
path: src/installer/MeshLab*-windows.exe
path: installer/MeshLab*-windows.exe
#after building MeshLab for the three platforms, we create a release in github
create_release:

View File

@ -51,22 +51,22 @@ jobs:
- name: Create Installer
uses: joncloud/makensis-action@v1
with:
script-file: "src/install/meshlab_final.nsi"
script-file: "install/meshlab_final.nsi"
- name: Move Installer
shell: bash
run: |
mkdir src/installer
mv src/install/MeshLab*-windows.exe src/installer/
rm src/install/meshlab_final.nsi
rm src/install/ExecWaitJob.nsh
rm src/install/FileAssociation.nsh
mkdir installer
mv install/MeshLab*-windows.exe installer/
rm install/meshlab_final.nsi
rm install/ExecWaitJob.nsh
rm install/FileAssociation.nsh
- name: Uploading MeshLab Portable
uses: actions/upload-artifact@v2
with:
name: meshlab_windows_portable${{steps.envs.outputs.artifact_suffix}}
path: src/install
path: install
- name: Upload Meshlab Installer
uses: actions/upload-artifact@v2
with:
name: meshlab_windows_installer${{steps.envs.outputs.artifact_suffix}}
path: src/installer/MeshLab*-windows.exe
path: installer/MeshLab*-windows.exe

View File

@ -3,8 +3,8 @@
# Requires a VS >= 2017 and Qt environments which are set-up properly,
# and an accessible cmake binary.
#
# Without given arguments, MeshLab will be built in the meshlab/src/build
# directory, and installed in $BUILD_PATH/../install.
# Without given arguments, MeshLab will be built in the meshlab/build
# directory, and installed in meshlab/install.
#
# You can give as argument the BUILD_PATH and the INSTALL_PATH in the
# following way:
@ -14,8 +14,8 @@
#default paths wrt the script folder
SCRIPTS_PATH="$(dirname "$(realpath "$0")")"
SOURCE_PATH=$SCRIPTS_PATH/../../src
BUILD_PATH=$SOURCE_PATH/build
INSTALL_PATH=$SOURCE_PATH/install
BUILD_PATH=$SOURCE_PATH/../build
INSTALL_PATH=$SOURCE_PATH/../install
DOUBLE_PRECISION_OPTION=""
NIGHTLY_OPTION=""

View File

@ -2,13 +2,13 @@
# This is a script shell for deploying a meshlab-portable folder.
# Requires a properly built meshlab (see 1_build.sh).
#
# Without given arguments, the folder that will be deployed is meshlab/src/install.
# Without given arguments, the folder that will be deployed is meshlab/install.
#
# You can give as argument the path where meshlab is installed.
SCRIPTS_PATH="$(dirname "$(realpath "$0")")"
RESOURCES_PATH=$SCRIPTS_PATH/../../resources
INSTALL_PATH=$SCRIPTS_PATH/../../src/install
INSTALL_PATH=$SCRIPTS_PATH/../../install
#checking for parameters
for i in "$@"

View File

@ -7,11 +7,11 @@
#
# You can give as argument the INSTALL_PATH.
#
# After running this script, the installer can be found inside the resources folder.
# After running this script, the installer can be found inside the install folder.
SCRIPTS_PATH="$(dirname "$(realpath "$0")")"
RESOURCES_PATH=$SCRIPTS_PATH/../../resources
INSTALL_PATH=$SCRIPTS_PATH/../../src/install
INSTALL_PATH=$SCRIPTS_PATH/../../install
#checking for parameters

View File

@ -12,7 +12,7 @@
SCRIPTS_PATH="$(dirname "$(realpath "$0")")"/..
RESOURCES_PATH=$SCRIPTS_PATH/../../resources
SOURCE_PATH=$SCRIPTS_PATH/../../src
INSTALL_PATH=$SOURCE_PATH/install
INSTALL_PATH=$SOURCE_PATH/../install
#check parameters
for i in "$@"

View File

@ -4,22 +4,21 @@
# Requires MSVC and Qt environment which is set-up properly, and accessible
# cmake and makensis binaries.
#
# Without given arguments, MeshLab will be built in the meshlab/src/build,
# the folder meshlab/src/install will be a portable version of MeshLab and
# the AppImage will be placed in meshlab/src.
# Without given arguments, MeshLab will be built in the meshlab/build,
# the folder meshlab/install will be a portable version of MeshLab and
# the Installer will be placed in meshlab/install.
#
# You can give as argument the build path, the install path (that will contain
# the portable version of MeshLab), and the number of cores to use to build MeshLab
# (default: 4).
# The installer will be placed in the parent directory of the install path.
#
# Example of call:
# bash make_it.sh --build_path=path/to/build --install_path=path/to/install -j8
SCRIPTS_PATH="$(dirname "$(realpath "$0")")"
SOURCE_PATH=$SCRIPTS_PATH/../../src
BUILD_PATH=$SOURCE_PATH/build
INSTALL_PATH=$SOURCE_PATH/install
BUILD_PATH=$SOURCE_PATH/../build
INSTALL_PATH=$SOURCE_PATH/../install
CORES="-j4"
DOUBLE_PRECISION_OPTION=""
@ -28,24 +27,24 @@ for i in "$@"
do
case $i in
-b=*|--build_path=*)
BUILD_PATH="${i#*=}"
shift # past argument=value
;;
BUILD_PATH="${i#*=}"
shift # past argument=value
;;
-i=*|--install_path=*)
INSTALL_PATH="${i#*=}"/usr/
shift # past argument=value
;;
INSTALL_PATH="${i#*=}"/usr/
shift # past argument=value
;;
-j*)
CORES=$i
shift # past argument=value
;;
CORES=$i
shift # past argument=value
;;
--double_precision)
DOUBLE_PRECISION_OPTION="--double_precision"
shift # past argument=value
;;
DOUBLE_PRECISION_OPTION="--double_precision"
shift # past argument=value
;;
*)
# unknown option
;;
# unknown option
;;
esac
done