mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
Fix commercial macos build
This commit is contained in:
committed by
Alexey Golubev
parent
eacf89abe0
commit
8df3cbb4f3
@ -29,6 +29,7 @@ platform :mac do
|
||||
app_name = "ONLYOFFICE"
|
||||
app = "#{build}/#{app_name}.app"
|
||||
git_suffix = options[:git_suffix]
|
||||
edition = options[:edition]
|
||||
|
||||
desc 'Cleanup'
|
||||
sh("rm -rf ../#{build}")
|
||||
@ -46,6 +47,9 @@ platform :mac do
|
||||
path: "ONLYOFFICE/Resources/#{scheme}/Info.plist",
|
||||
key: "ASCBundleBuildNumber"
|
||||
)
|
||||
package_name = app_name
|
||||
if edition && !edition.empty? then package_name += "-#{edition}" end
|
||||
package_name += "-#{git_suffix}-#{version_number}-#{app_build_number}"
|
||||
|
||||
desc 'Build for developer id and notarize'
|
||||
gym(
|
||||
@ -70,12 +74,7 @@ platform :mac do
|
||||
|
||||
desc 'Create DMG image'
|
||||
sh("npm install appdmg")
|
||||
sh("npx appdmg resources/appdmg.json ../#{build}/#{app_name}-#{git_suffix}-#{version_number}-#{app_build_number}.dmg")
|
||||
# commercial
|
||||
if scheme != "ONLYOFFICE-v8"
|
||||
sh("find ../#{app} -name 'EULA.html' -exec cp -fv ../../common/package/license/commercial/LICENSE.html {} \\;")
|
||||
sh("npx appdmg resources/appdmg.json ../#{build}/#{app_name}-Enterprise-#{git_suffix}-#{version_number}-#{app_build_number}.dmg")
|
||||
end
|
||||
sh("npx appdmg resources/appdmg.json ../#{build}/#{package_name}.dmg")
|
||||
|
||||
if options[:skip_git_bump]
|
||||
next
|
||||
|
||||
Reference in New Issue
Block a user