Fix bug 77116 - Fix mac license (#471)

Co-authored-by: Semyon Bezrukov <semen.bezrukov@onlyoffice.com>
Co-committed-by: Semyon Bezrukov <semen.bezrukov@onlyoffice.com>
This commit is contained in:
Semyon Bezrukov
2025-10-02 12:16:10 +00:00
committed by Alexey Golubev
parent 80b16ff291
commit 8be8365d60
3 changed files with 6 additions and 5 deletions

View File

@ -102,7 +102,7 @@
// EULA View
if (self.eulaWebView) {
if ( !eulaUrl )
eulaUrl = [[NSBundle mainBundle] URLForResource:@"License" withExtension:@"html" subdirectory:@"license"];
eulaUrl = [[NSBundle mainBundle] URLForResource:@"LICENSE" withExtension:@"html" subdirectory:@"license"];
[[self.eulaWebView mainFrame] loadRequest:[NSURLRequest requestWithURL:eulaUrl]];
} else {
// About View

View File

@ -32,7 +32,7 @@ platform :mac do
edition = options[:edition]
desc 'Cleanup'
sh("rm -rf ../#{build}")
sh("rm -rf ../#{build} && rm -rf ../Vendor/ONLYOFFICE")
desc 'Get the version from plist'
version_number = get_info_plist_value(
@ -51,9 +51,10 @@ platform :mac do
if edition && !edition.empty? then package_name += "-#{edition}" end
package_name += "-#{git_suffix}-#{version_number}-#{app_build_number}"
if edition == "Enterprise"
sh("rm -fv ../Vendor/ONLYOFFICE/license/EULA.html")
sh("cp -fv ../../common/package/license/commercial/LICENSE.html ../Vendor/ONLYOFFICE/license/")
if edition != "Enterprise"
sh("mkdir -p ../Vendor/ONLYOFFICE/license && cp -fv ../../common/package/license/opensource/LICENSE.html ../Vendor/ONLYOFFICE/license/LICENSE.html")
else
sh("mkdir -p ../Vendor/ONLYOFFICE/license && cp -fv ../../common/package/license/commercial/LICENSE.html ../Vendor/ONLYOFFICE/license/EULA.html")
end
desc 'Build for developer id and notarize'