Bladeren bron

Update build to create deb and rpm packages

Peter Squicciarini 7 jaren geleden
bovenliggende
commit
58cff9026c
3 gewijzigde bestanden met toevoegingen van 8 en 2 verwijderingen
  1. 5 1
      .travis.yml
  2. 2 0
      build.sh
  3. 1 1
      create_zip.sh

+ 5 - 1
.travis.yml

@@ -25,7 +25,11 @@ deploy:
   skip_cleanup: true
   api_key: $GITHUB_TOKEN
   file_glob: true
-  file: ./*.zip
+  file:
+    - ./*.zip
+    - ./*.tar.gz
+    - vscode/.build/linux/deb/amd64/deb/*.deb
+    - vscode/.build/linux/rpm/x86_64/*.rpm
   on:
     all_branches: true
     condition: $SHOULD_BUILD = yes

+ 2 - 0
build.sh

@@ -12,6 +12,8 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
     npx gulp vscode-darwin-min
   else
     npx gulp vscode-linux-x64-min
+    npx gulp vscode-linux-x64-build-deb
+    npx gulp vscode-linux-x64-build-rpm
   fi
 
   cd ..

+ 1 - 1
create_zip.sh

@@ -6,7 +6,7 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
     zip -r ../VSCode-darwin-${LATEST_MS_TAG}.zip ./*
   else
     cd VSCode-linux-x64
-    zip -r ../VSCode-linux-x64-${LATEST_MS_TAG}.zip ./*
+    tar czf ../VSCode-linux-x64-${LATEST_MS_TAG}.tar.gz .
   fi
 
   cd ..