Преглед на файлове

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:
   - ./sign_mac_app.sh
   - ./create_zip.sh
+  - ./create_dmg.sh
   - ./sum.sh
 
 deploy:
@@ -42,6 +43,7 @@ deploy:
     - ./*.sha256
     - ./*.zip
     - ./*.tar.gz
+    - ./*.dmg
     - vscode/.build/linux/deb/i386/deb/*.deb
     - vscode/.build/linux/rpm/i386/*.rpm
     - 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.
 
 ## <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 x86 (`.deb`, `.rpm`, and `.tar.gz` files)
 - [x] Windows x64

+ 1 - 0
build.sh

@@ -45,6 +45,7 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
   fi
 
   if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
+    npm install --global create-dmg
     npm run gulp -- "vscode-darwin-min"
   elif [[ "$CI_WINDOWS" == "True" ]]; then
     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