mirror of
https://gitlab.com/openlp/packaging.git
synced 2024-12-22 04:52:50 +00:00
Some updates to the macOS builder
- Apparently we don't need to sign the app anymore - Add hooks for websockets
This commit is contained in:
parent
cfdbeb7176
commit
128de147e0
@ -92,7 +92,6 @@ like this:
|
||||
|
||||
import glob
|
||||
import os
|
||||
import distutils
|
||||
from pathlib import Path
|
||||
from shutil import copy, copytree, move, rmtree
|
||||
|
||||
@ -349,12 +348,10 @@ class MacOSXBuilder(Builder):
|
||||
size += 10
|
||||
|
||||
os.chdir(os.path.dirname(self.dmg_settings_path))
|
||||
dmgbuild_exe = os.path.join(distutils.sys.exec_prefix, 'bin', 'dmgbuild')
|
||||
argv = [dmgbuild_exe, '-s', self.dmg_settings_path, '-D', 'size={size}M'.format(size=size),
|
||||
argv = ['-s', self.dmg_settings_path, '-D', 'size={size}M'.format(size=size),
|
||||
'-D', 'icon={icon_path}'.format(icon_path=self.icon_path),
|
||||
'-D', 'app={dist_app_path}'.format(dist_app_path=self.dist_app_path), dmg_title, self.dmg_file]
|
||||
self._run_path(dmgbuild_exe, argv, 'Error running dmgbuild')
|
||||
# Dmg done.
|
||||
self._run_module('dmgbuild', argv, 'Error running dmgbuild')
|
||||
self._print('Finished creating dmg file, resulting file: %s' % self.dmg_file)
|
||||
|
||||
def get_platform(self):
|
||||
@ -416,7 +413,7 @@ class MacOSXBuilder(Builder):
|
||||
Build the actual DMG
|
||||
"""
|
||||
self._fix_qt_paths()
|
||||
self._code_sign()
|
||||
# self._code_sign()
|
||||
self._create_dmg()
|
||||
|
||||
|
||||
|
26
pyinstaller-hooks/hook-websockets.legacy.py
Normal file
26
pyinstaller-hooks/hook-websockets.legacy.py
Normal file
@ -0,0 +1,26 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
|
||||
|
||||
##########################################################################
|
||||
# OpenLP - Open Source Lyrics Projection #
|
||||
# ---------------------------------------------------------------------- #
|
||||
# Copyright (c) 2008-2019 OpenLP Developers #
|
||||
# ---------------------------------------------------------------------- #
|
||||
# This program is free software: you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
# the Free Software Foundation, either version 3 of the License, or #
|
||||
# (at your option) any later version. #
|
||||
# #
|
||||
# This program is distributed in the hope that it will be useful, #
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
||||
# GNU General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>. #
|
||||
##########################################################################
|
||||
import websockets.legacy.client
|
||||
import websockets.legacy.server
|
||||
|
||||
|
||||
hiddenimports = ['websockets.legacy.server', 'websockets.legacy.client']
|
Loading…
Reference in New Issue
Block a user