浏览代码

Feature/DMG (#162)

Thanks @RandyStevens 🙏 

Closes #139
Randal Stevens 6 年之前
父节点
当前提交
7b1c9aff73
共有 4 个文件被更改,包括 12 次插入1 次删除
  1. 2 0
      .travis.yml
  2. 1 1
      README.md
  3. 1 0
      build.sh
  4. 8 0
      create_dmg.sh

+ 2 - 0
.travis.yml

@@ -29,6 +29,7 @@ script:
 before_deploy:
 before_deploy:
   - ./sign_mac_app.sh
   - ./sign_mac_app.sh
   - ./create_zip.sh
   - ./create_zip.sh
+  - ./create_dmg.sh
   - ./sum.sh
   - ./sum.sh
 
 
 deploy:
 deploy:
@@ -42,6 +43,7 @@ deploy:
     - ./*.sha256
     - ./*.sha256
     - ./*.zip
     - ./*.zip
     - ./*.tar.gz
     - ./*.tar.gz
+    - ./*.dmg
     - vscode/.build/linux/deb/i386/deb/*.deb
     - vscode/.build/linux/deb/i386/deb/*.deb
     - vscode/.build/linux/rpm/i386/*.rpm
     - vscode/.build/linux/rpm/i386/*.rpm
     - vscode/.build/linux/deb/amd64/deb/*.deb
     - vscode/.build/linux/deb/amd64/deb/*.deb

+ 1 - 1
README.md

@@ -92,7 +92,7 @@ For more information on getting all the telemetry disabled and tips for migratin
 Please note that some Visual Studio Code extensions have licenses that restrict their use to the official Visual Studio Code builds and therefore do not work with VSCodium. See [this note](https://github.com/VSCodium/vscodium/blob/master/DOCS.md#proprietary-debugging-tools) on the Docs page for what's been found so far and possible workarounds.
 Please note that some Visual Studio Code extensions have licenses that restrict their use to the official Visual Studio Code builds and therefore do not work with VSCodium. See [this note](https://github.com/VSCodium/vscodium/blob/master/DOCS.md#proprietary-debugging-tools) on the Docs page for what's been found so far and possible workarounds.
 
 
 ## <a id="supported-os"></a>Supported OS
 ## <a id="supported-os"></a>Supported OS
-- [x] OSX x64 (zipped app file)
+- [x] OSX x64 (zip, dmg)
 - [x] Linux x64 (`.deb`, `.rpm`, `AppImage`, and `.tar.gz` files)
 - [x] Linux x64 (`.deb`, `.rpm`, `AppImage`, and `.tar.gz` files)
 - [x] Linux x86 (`.deb`, `.rpm`, and `.tar.gz` files)
 - [x] Linux x86 (`.deb`, `.rpm`, and `.tar.gz` files)
 - [x] Windows x64
 - [x] Windows x64

+ 1 - 0
build.sh

@@ -45,6 +45,7 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
   fi
   fi
 
 
   if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
   if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
+    npm install --global create-dmg
     npm run gulp -- "vscode-darwin-min"
     npm run gulp -- "vscode-darwin-min"
   elif [[ "$CI_WINDOWS" == "True" ]]; then
   elif [[ "$CI_WINDOWS" == "True" ]]; then
     cp LICENSE.txt LICENSE.rtf # windows build expects rtf license
     cp LICENSE.txt LICENSE.rtf # windows build expects rtf license

+ 8 - 0
create_dmg.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+if [[ "$SHOULD_BUILD" == "yes" ]]; then
+  if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
+    cd VSCode-darwin
+    create-dmg VSCodium.app ..
+  fi
+  cd ..
+fi