1
0
mirror of https://gitlab.com/openlp/packaging.git synced 2024-12-22 13:02: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:
Raoul Snyman 2021-09-02 17:53:21 -07:00
parent cfdbeb7176
commit 128de147e0
No known key found for this signature in database
GPG Key ID: 7347E1FA47B16091
2 changed files with 29 additions and 6 deletions

View File

@ -92,7 +92,6 @@ like this:
import glob import glob
import os import os
import distutils
from pathlib import Path from pathlib import Path
from shutil import copy, copytree, move, rmtree from shutil import copy, copytree, move, rmtree
@ -349,12 +348,10 @@ class MacOSXBuilder(Builder):
size += 10 size += 10
os.chdir(os.path.dirname(self.dmg_settings_path)) os.chdir(os.path.dirname(self.dmg_settings_path))
dmgbuild_exe = os.path.join(distutils.sys.exec_prefix, 'bin', 'dmgbuild') argv = ['-s', self.dmg_settings_path, '-D', 'size={size}M'.format(size=size),
argv = [dmgbuild_exe, '-s', self.dmg_settings_path, '-D', 'size={size}M'.format(size=size),
'-D', 'icon={icon_path}'.format(icon_path=self.icon_path), '-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] '-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') self._run_module('dmgbuild', argv, 'Error running dmgbuild')
# Dmg done.
self._print('Finished creating dmg file, resulting file: %s' % self.dmg_file) self._print('Finished creating dmg file, resulting file: %s' % self.dmg_file)
def get_platform(self): def get_platform(self):
@ -416,7 +413,7 @@ class MacOSXBuilder(Builder):
Build the actual DMG Build the actual DMG
""" """
self._fix_qt_paths() self._fix_qt_paths()
self._code_sign() # self._code_sign()
self._create_dmg() self._create_dmg()

View 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']