mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
Merge branch 'feature/fastlane' into develop
This commit is contained in:
13
.gitignore
vendored
13
.gitignore
vendored
@ -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
4
macos/Gemfile
Normal file
@ -0,0 +1,4 @@
|
||||
source "https://rubygems.org"
|
||||
|
||||
gem "fastlane"
|
||||
gem "dotenv"
|
||||
File diff suppressed because one or more lines are too long
@ -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
3
macos/fastlane/Appfile
Normal 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
66
macos/fastlane/Fastfile
Normal 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
|
||||
12
macos/fastlane/resources/appdmg.json
Normal file
12
macos/fastlane/resources/appdmg.json
Normal 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" }
|
||||
]
|
||||
}
|
||||
BIN
macos/fastlane/resources/background.png
Executable file
BIN
macos/fastlane/resources/background.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 8.1 KiB |
BIN
macos/fastlane/resources/background@2x.png
Executable file
BIN
macos/fastlane/resources/background@2x.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
Reference in New Issue
Block a user