Merge branch 'feature/fastlane' into develop

This commit is contained in:
Alexander Yuzhin
2020-05-06 15:20:40 +03:00
9 changed files with 97 additions and 5 deletions

13
.gitignore vendored
View File

@ -39,8 +39,15 @@ common/converter/*
.DS_Store
*.xcuserstate
*.xcuserdatad
.idea
macos/Vendor/ONLYOFFICE
macos/Production/Production/ONLYOFFICE.app
*.xcscmblueprint
.idea
.env.secret
dsa_priv.pem
Gemfile.lock
package-lock.json
macos/build
macos/fastlane/node_modules
macos/fastlane/README.md
macos/fastlane/report.xml
macos/Vendor/ONLYOFFICE
macos/Production/Production/ONLYOFFICE.app

4
macos/Gemfile Normal file
View File

@ -0,0 +1,4 @@
source "https://rubygems.org"
gem "fastlane"
gem "dotenv"

File diff suppressed because one or more lines are too long

View File

@ -294,7 +294,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>378</string>
<string>390</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.productivity</string>
<key>LSMinimumSystemVersion</key>

3
macos/fastlane/Appfile Normal file
View File

@ -0,0 +1,3 @@
app_identifier "com.onlyoffice.ONLYOFFICE" # The bundle identifier of your app
apple_id ENV["APPLE_ID"] # Your Apple email address
team_id ENV["TEAM_ID"] # Developer Portal Team ID

66
macos/fastlane/Fastfile Normal file
View File

@ -0,0 +1,66 @@
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
#
# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane
# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "2.3.1"
fastlane_require 'dotenv'
Dotenv.load '.env.secret'
default_platform :mac
platform :mac do
lane :release do
build = "build"
scheme = "ONLYOFFICE"
app = "#{build}/#{scheme}.app"
desc 'Cleanup'
sh("rm -rf ../#{build}")
desc 'Build for developer id and notarize'
gym(
scheme: scheme,
configuration: 'Release',
clean: true,
output_directory: build,
codesigning_identity: 'Developer ID Application',
export_method: 'developer-id',
skip_package_pkg: true
)
notarize(
package: app,
print_log: true,
verbose: true
)
version = get_version_number(
target: scheme
)
desc 'Prepare zip for delta update'
zip(
path: app,
output_path: "#{build}/#{scheme}-#{version}.zip"
)
desc 'Create DMG image'
sh("npm install appdmg")
sh("npx appdmg resources/appdmg.json ../#{build}/#{scheme}.dmg")
end
end

View File

@ -0,0 +1,12 @@
{
"title": "ONLYOFFICE",
"background": "background.png",
"icon-size": 128,
"code-sign": {
"signing-identity": "Developer ID Application: Ascensio System SIA (2WH24U26GJ)"
},
"contents": [
{ "x": 193, "y": 210, "type": "file", "path": "../../build/ONLYOFFICE.app" },
{ "x": 445, "y": 212, "type": "link", "path": "/Applications" }
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB