File: build.sh

package info (click to toggle)
pyinstaller 6.18.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 11,824 kB
  • sloc: python: 41,828; ansic: 12,123; makefile: 171; sh: 131; xml: 19
file content (45 lines) | stat: -rw-r--r-- 1,491 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env bash
#-----------------------------------------------------------------------------
# Copyright (c) 2005-2023, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License (version 2
# or later) with exception for distributing the bootloader.
#
# The full license is in the file COPYING.txt, distributed with this software.
#
# SPDX-License-Identifier: (GPL-2.0-or-later WITH Bootloader-exception)
# -----------------------------------------------------------------------------

cd $(dirname "$0")

if [ ! -r "_sdks/osx/osxcross.tar.xz" ] ; then
	echo "Building the macOS SDK and cctools"
	vagrant up --no-provision build-osxcross
	vagrant provision build-osxcross
	vagrant destroy builx-osxcross
	echo
fi

# start the build-guests
vagrant up --no-provision linux64 windows10

# build the bootloaders
vagrant provision linux64            # GNU/Linux bootloaders
TARGET=OSX vagrant provision linux64 # macOS bootloaders
vagrant provision windows10          # Windows bootloaders (using msvc)

# verify the bootloaders have been built
git status ../PyInstaller/bootloader/

read -n 1 -p "Destroy or shutdown machines? (D/s/n) " REPLY
echo
REPLY=${REPLY^^*}
if [ "$REPLY" = "D" ] ; then
	echo
	vagrant destroy -f linux64 windows10
elif [ "${REPLY,,*}" = "s" ] ; then
	echo
	vagrant halt linux64 windows10
elif [ "${REPLY,,*}" != "n" ] ; then
	echo "Invalid answer. You may halt the machines manually using 'vagrant halt linux64  windows10'"
fi