mirror of
https://github.com/marktext/marktext.git
synced 2025-05-03 04:20:36 +08:00
Add deb/rpm and adjust package file names (#1718)
* Add deb/rpm and adjust package file names * Fix apt package name * Add deb/rpm checksums
This commit is contained in:
parent
71f932aa51
commit
df7c437019
12
.travis.yml
12
.travis.yml
@ -39,6 +39,8 @@ addons:
|
|||||||
- libsecret-1-dev
|
- libsecret-1-dev
|
||||||
# fontmanager
|
# fontmanager
|
||||||
- libfontconfig-dev
|
- libfontconfig-dev
|
||||||
|
# Build RPM on Ubuntu
|
||||||
|
- rpm
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update ; fi
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update ; fi
|
||||||
@ -71,10 +73,12 @@ script:
|
|||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then yarn run release:mac --publish always ; fi
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then yarn run release:mac --publish always ; fi
|
||||||
|
|
||||||
# Calculate checksums
|
# Calculate checksums
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sha256sum build/marktext-*-x64.tar.gz ; fi
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sha256sum build/marktext-x64.tar.gz ; fi
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sha256sum build/marktext-*-x86_64.AppImage ; fi
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sha256sum build/marktext-x86_64.AppImage ; fi
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then shasum -a 256 build/marktext-*-mac.zip ; fi
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sha256sum build/marktext-*.deb ; fi
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then shasum -a 256 build/marktext-*.dmg ; fi
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sha256sum build/marktext-*.rpm ; fi
|
||||||
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then shasum -a 256 build/marktext-mac.zip ; fi
|
||||||
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then shasum -a 256 build/marktext.dmg ; fi
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
|
@ -47,7 +47,7 @@ build_script:
|
|||||||
- yarn run release:win --publish always
|
- yarn run release:win --publish always
|
||||||
|
|
||||||
# Calculate checksums
|
# Calculate checksums
|
||||||
- ps: get-filehash -Algorithm SHA256 "build\marktext-*.exe"
|
- ps: get-filehash -Algorithm SHA256 "build\marktext-setup.exe"
|
||||||
- ps: get-filehash -Algorithm SHA256 "build\marktext-*-win.zip"
|
- ps: get-filehash -Algorithm SHA256 "build\marktext-*-win.zip"
|
||||||
|
|
||||||
test: off
|
test: off
|
||||||
|
@ -59,7 +59,7 @@ fileAssociations:
|
|||||||
role: "Editor"
|
role: "Editor"
|
||||||
icon: "../resources/icons/md.icns"
|
icon: "../resources/icons/md.icns"
|
||||||
dmg:
|
dmg:
|
||||||
artifactName: "marktext-${version}.${ext}"
|
artifactName: "marktext.${ext}"
|
||||||
contents:
|
contents:
|
||||||
- x: 410
|
- x: 410
|
||||||
y: 150
|
y: 150
|
||||||
@ -69,11 +69,11 @@ dmg:
|
|||||||
y: 150
|
y: 150
|
||||||
type: "file"
|
type: "file"
|
||||||
mac:
|
mac:
|
||||||
artifactName: "marktext-${version}-mac.${ext}"
|
artifactName: "marktext-mac.${ext}"
|
||||||
icon: "resources/icons/icon.icns"
|
icon: "resources/icons/icon.icns"
|
||||||
darkModeSupport: true
|
darkModeSupport: true
|
||||||
win:
|
win:
|
||||||
artifactName: "marktext-${version}-${arch}-win.${ext}"
|
artifactName: "marktext-${arch}-win.${ext}"
|
||||||
icon: "resources/icons/icon.ico"
|
icon: "resources/icons/icon.ico"
|
||||||
target:
|
target:
|
||||||
- target: "nsis"
|
- target: "nsis"
|
||||||
@ -86,13 +86,16 @@ win:
|
|||||||
- "x64"
|
- "x64"
|
||||||
requestedExecutionLevel: "asInvoker"
|
requestedExecutionLevel: "asInvoker"
|
||||||
nsis:
|
nsis:
|
||||||
artifactName: "marktext-setup-${version}.${ext}"
|
artifactName: "marktext-setup.${ext}"
|
||||||
perMachine: false
|
perMachine: false
|
||||||
oneClick: false
|
oneClick: false
|
||||||
allowToChangeInstallationDirectory: true
|
allowToChangeInstallationDirectory: true
|
||||||
include: "resources/windows/installer.nsh"
|
include: "resources/windows/installer.nsh"
|
||||||
linux:
|
linux:
|
||||||
artifactName: "marktext-${version}-${arch}.${ext}"
|
artifactName: "marktext-${arch}.${ext}"
|
||||||
|
executableName: "marktext"
|
||||||
|
description: "A simple and elegant open-source markdown editor that focused on speed and usability."
|
||||||
|
maintainer: "Mark Text Contributors"
|
||||||
category: "Office;TextEditor;Utility"
|
category: "Office;TextEditor;Utility"
|
||||||
mimeTypes:
|
mimeTypes:
|
||||||
- "text/markdown"
|
- "text/markdown"
|
||||||
@ -102,7 +105,10 @@ linux:
|
|||||||
Keywords: "marktext;"
|
Keywords: "marktext;"
|
||||||
target:
|
target:
|
||||||
- target: "AppImage"
|
- target: "AppImage"
|
||||||
|
- target: "deb"
|
||||||
|
- target: "rpm"
|
||||||
- target: "tar.gz"
|
- target: "tar.gz"
|
||||||
|
# Workaround because file association array doesn't work.
|
||||||
fileAssociations:
|
fileAssociations:
|
||||||
- ext: "md"
|
- ext: "md"
|
||||||
name: "Markdown"
|
name: "Markdown"
|
||||||
@ -122,3 +128,26 @@ linux:
|
|||||||
- ext: "mdtext"
|
- ext: "mdtext"
|
||||||
name: "Markdown"
|
name: "Markdown"
|
||||||
description: "Markdown document"
|
description: "Markdown document"
|
||||||
|
deb:
|
||||||
|
# Custom dependencies:
|
||||||
|
depends:
|
||||||
|
# keytar
|
||||||
|
- "libsecret-1-0"
|
||||||
|
# keyboard-layout
|
||||||
|
- "libx11-xcb1"
|
||||||
|
- "libxkbfile1"
|
||||||
|
# fontmanager
|
||||||
|
- "libfontconfig1"
|
||||||
|
fpm:
|
||||||
|
# Expat := MIT like
|
||||||
|
- "--license=Expat"
|
||||||
|
rpm:
|
||||||
|
# Custom dependencies:
|
||||||
|
depends:
|
||||||
|
# keytar
|
||||||
|
- "libsecret"
|
||||||
|
# keyboard-layout
|
||||||
|
- "libX11-xcb"
|
||||||
|
- "libxkbfile"
|
||||||
|
# fontmanager
|
||||||
|
- "fontconfig"
|
||||||
|
Loading…
Reference in New Issue
Block a user