Skip to content

Commit

Permalink
Release Packages: Copy built binaries to '_release' folder (onivim#373)
Browse files Browse the repository at this point in the history
* Add 'create-release' to the esy-build-steps

* Step to release artifact

* Pass platform template parameter

* Update lockfiles

* Check that we pick up esy-dylibbundler

* Release script updates

* Generate plist

* Update lockfiles

* Add dmg-background image

* Add release script

* 1024px icon

* Add icon files + script

* Update dmg background

* Update release.js

* Fix up strategy for Win / Linux

* 8.10869.14001
  • Loading branch information
bryphe authored Jul 8, 2019
1 parent f7b607e commit ceb5800
Show file tree
Hide file tree
Showing 11 changed files with 368 additions and 21 deletions.
9 changes: 9 additions & 0 deletions .ci/esy-build-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,12 @@ steps:
displayName: "Bench: build"
- script: esy @bench run
displayName: "Bench: run"
- script: esy x Oni2 --help
displayName: "esy x Oni2 --help"
- script: esy create-release
displayName: "esy create-release"
- task: PublishBuildArtifacts@1
displayName: "Release Artifact: ${{ parameters.platform }}"
inputs:
PathToPublish: "_release"
ArtifactName: "Release_${{parameters.platform }}"
Binary file added assets/images/Onivim2.icns
Binary file not shown.
13 changes: 13 additions & 0 deletions assets/images/UpdateICNS.src
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
mkdir Onivim2.iconset
sips -z 16 16 Icon1024.png --out Onivim2.iconset/icon_16x16.png
sips -z 32 32 Icon1024.png --out Onivim2.iconset/[email protected]
sips -z 32 32 Icon1024.png --out Onivim2.iconset/icon_32x32.png
sips -z 64 64 Icon1024.png --out Onivim2.iconset/[email protected]
sips -z 128 128 Icon1024.png --out Onivim2.iconset/icon_128x128.png
sips -z 256 256 Icon1024.png --out Onivim2.iconset/[email protected]
sips -z 256 256 Icon1024.png --out Onivim2.iconset/icon_256x256.png
sips -z 512 512 Icon1024.png --out Onivim2.iconset/[email protected]
sips -z 512 512 Icon1024.png --out Onivim2.iconset/icon_512x512.png
cp Icon1024.png Onivim2.iconset/[email protected]
iconutil -c icns Onivim2.iconset
rm -R Onivim2.iconset
Binary file added assets/images/dmg-background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/icon1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
- template: .ci/restore-build-cache.yml
- template: .ci/js-build-steps.yml
- template: .ci/esy-build-steps.yml
parameters:
platform: linux
- template: .ci/publish-build-cache.yml

- job: MacOS
Expand All @@ -66,6 +68,8 @@ jobs:
- template: .ci/restore-build-cache.yml
- template: .ci/js-build-steps.yml
- template: .ci/esy-build-steps.yml
parameters:
platform: darwin
- template: .ci/publish-build-cache.yml

- job: Windows
Expand All @@ -85,4 +89,6 @@ jobs:
- template: .ci/restore-build-cache.yml
- template: .ci/js-build-steps.yml
- template: .ci/esy-build-steps.yml
parameters:
platform: windows
- template: .ci/publish-build-cache.yml
81 changes: 78 additions & 3 deletions bench.esy.lock/index.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,35 @@
{
"checksum": "34c48e15157bcb9c20fb59533defa08d",
"checksum": "276d3998b57a43309e81dc5789833dd0",
"root": "Oni2@link-dev:./package.json",
"node": {
"[email protected]@d41d8cd9": {
"id": "[email protected]@d41d8cd9",
"name": "xmldom",
"version": "0.1.27",
"source": {
"type": "install",
"source": [
"archive:https://registry.npmjs.org/xmldom/-/xmldom-0.1.27.tgz#sha1:d501f97b3bdb403af8ef9ecc20573187aadac0e9"
]
},
"overrides": [],
"dependencies": [],
"devDependencies": []
},
"[email protected]@d41d8cd9": {
"id": "[email protected]@d41d8cd9",
"name": "xmlbuilder",
"version": "9.0.7",
"source": {
"type": "install",
"source": [
"archive:https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-9.0.7.tgz#sha1:132ee63d2ec5565c557e20f4c22df9aca686b10d"
]
},
"overrides": [],
"dependencies": [],
"devDependencies": []
},
"[email protected]@d41d8cd9": {
"id": "[email protected]@d41d8cd9",
"name": "universalify",
Expand Down Expand Up @@ -258,6 +286,23 @@
],
"devDependencies": []
},
"[email protected]@d41d8cd9": {
"id": "[email protected]@d41d8cd9",
"name": "plist",
"version": "3.0.1",
"source": {
"type": "install",
"source": [
"archive:https://registry.npmjs.org/plist/-/plist-3.0.1.tgz#sha1:a9b931d17c304e8912ef0ba3bdd6182baf2e1f8c"
]
},
"overrides": [],
"dependencies": [
"[email protected]@d41d8cd9", "[email protected]@d41d8cd9",
"[email protected]@d41d8cd9"
],
"devDependencies": []
},
"[email protected]@d41d8cd9": {
"id": "[email protected]@d41d8cd9",
"name": "pesy",
Expand Down Expand Up @@ -379,6 +424,20 @@
],
"devDependencies": []
},
"[email protected]@d41d8cd9": {
"id": "[email protected]@d41d8cd9",
"name": "esy-macdylibbundler",
"version": "0.4.5",
"source": {
"type": "install",
"source": [
"archive:https://registry.npmjs.org/esy-macdylibbundler/-/esy-macdylibbundler-0.4.5.tgz#sha1:f4aeadafe072b8fce9603a6da3cd10fa15c23495"
]
},
"overrides": [],
"dependencies": [ "[email protected]@d41d8cd9" ],
"devDependencies": []
},
"[email protected]@d41d8cd9": {
"id": "[email protected]@d41d8cd9",
"name": "esy-harfbuzz",
Expand Down Expand Up @@ -435,6 +494,20 @@
"dependencies": [],
"devDependencies": []
},
"[email protected]@d41d8cd9": {
"id": "[email protected]@d41d8cd9",
"name": "base64-js",
"version": "1.3.0",
"source": {
"type": "install",
"source": [
"archive:https://registry.npmjs.org/base64-js/-/base64-js-1.3.0.tgz#sha1:cab1e6118f051095e58b5281aea8c1cd22bfc0e3"
]
},
"overrides": [],
"dependencies": [],
"devDependencies": []
},
"Oni2@link-dev:./package.json": {
"id": "Oni2@link-dev:./package.json",
"name": "Oni2",
Expand All @@ -452,6 +525,7 @@
"[email protected]@d41d8cd9",
"[email protected]@d41d8cd9", "[email protected]@d41d8cd9",
"[email protected]@d41d8cd9", "[email protected]@d41d8cd9",
"[email protected]@d41d8cd9",
"@reason-native/[email protected]@d41d8cd9", "@opam/zed@opam:1.6@004ea65e",
"@opam/yojson@opam:1.5.0@890db858",
"@opam/ppx_let@opam:v0.11.0@059b0142",
Expand All @@ -463,8 +537,9 @@
"@esy-ocaml/[email protected]@d41d8cd9"
],
"devDependencies": [
"[email protected]@d41d8cd9", "[email protected]@d41d8cd9",
"[email protected]@d41d8cd9", "@opam/merlin@opam:3.2.2@829ee6dd"
"[email protected]@d41d8cd9", "[email protected]@d41d8cd9",
"[email protected]@d41d8cd9", "[email protected]@d41d8cd9",
"@opam/merlin@opam:3.2.2@829ee6dd"
]
},
"@reason-native/[email protected]@d41d8cd9": {
Expand Down
81 changes: 78 additions & 3 deletions esy.lock/index.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,35 @@
{
"checksum": "34c48e15157bcb9c20fb59533defa08d",
"checksum": "276d3998b57a43309e81dc5789833dd0",
"root": "Oni2@link-dev:./package.json",
"node": {
"[email protected]@d41d8cd9": {
"id": "[email protected]@d41d8cd9",
"name": "xmldom",
"version": "0.1.27",
"source": {
"type": "install",
"source": [
"archive:https://registry.npmjs.org/xmldom/-/xmldom-0.1.27.tgz#sha1:d501f97b3bdb403af8ef9ecc20573187aadac0e9"
]
},
"overrides": [],
"dependencies": [],
"devDependencies": []
},
"[email protected]@d41d8cd9": {
"id": "[email protected]@d41d8cd9",
"name": "xmlbuilder",
"version": "9.0.7",
"source": {
"type": "install",
"source": [
"archive:https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-9.0.7.tgz#sha1:132ee63d2ec5565c557e20f4c22df9aca686b10d"
]
},
"overrides": [],
"dependencies": [],
"devDependencies": []
},
"[email protected]@d41d8cd9": {
"id": "[email protected]@d41d8cd9",
"name": "universalify",
Expand Down Expand Up @@ -258,6 +286,23 @@
],
"devDependencies": []
},
"[email protected]@d41d8cd9": {
"id": "[email protected]@d41d8cd9",
"name": "plist",
"version": "3.0.1",
"source": {
"type": "install",
"source": [
"archive:https://registry.npmjs.org/plist/-/plist-3.0.1.tgz#sha1:a9b931d17c304e8912ef0ba3bdd6182baf2e1f8c"
]
},
"overrides": [],
"dependencies": [
"[email protected]@d41d8cd9", "[email protected]@d41d8cd9",
"[email protected]@d41d8cd9"
],
"devDependencies": []
},
"[email protected]@d41d8cd9": {
"id": "[email protected]@d41d8cd9",
"name": "pesy",
Expand Down Expand Up @@ -379,6 +424,20 @@
],
"devDependencies": []
},
"[email protected]@d41d8cd9": {
"id": "[email protected]@d41d8cd9",
"name": "esy-macdylibbundler",
"version": "0.4.5",
"source": {
"type": "install",
"source": [
"archive:https://registry.npmjs.org/esy-macdylibbundler/-/esy-macdylibbundler-0.4.5.tgz#sha1:f4aeadafe072b8fce9603a6da3cd10fa15c23495"
]
},
"overrides": [],
"dependencies": [ "[email protected]@d41d8cd9" ],
"devDependencies": []
},
"[email protected]@d41d8cd9": {
"id": "[email protected]@d41d8cd9",
"name": "esy-harfbuzz",
Expand Down Expand Up @@ -435,6 +494,20 @@
"dependencies": [],
"devDependencies": []
},
"[email protected]@d41d8cd9": {
"id": "[email protected]@d41d8cd9",
"name": "base64-js",
"version": "1.3.0",
"source": {
"type": "install",
"source": [
"archive:https://registry.npmjs.org/base64-js/-/base64-js-1.3.0.tgz#sha1:cab1e6118f051095e58b5281aea8c1cd22bfc0e3"
]
},
"overrides": [],
"dependencies": [],
"devDependencies": []
},
"Oni2@link-dev:./package.json": {
"id": "Oni2@link-dev:./package.json",
"name": "Oni2",
Expand All @@ -451,6 +524,7 @@
"[email protected]@d41d8cd9",
"[email protected]@d41d8cd9", "[email protected]@d41d8cd9",
"[email protected]@d41d8cd9", "[email protected]@d41d8cd9",
"[email protected]@d41d8cd9",
"@reason-native/[email protected]@d41d8cd9", "@opam/zed@opam:1.6@004ea65e",
"@opam/yojson@opam:1.5.0@890db858",
"@opam/ppx_let@opam:v0.11.0@059b0142",
Expand All @@ -462,8 +536,9 @@
"@esy-ocaml/[email protected]@d41d8cd9"
],
"devDependencies": [
"[email protected]@d41d8cd9", "[email protected]@d41d8cd9",
"[email protected]@d41d8cd9", "@opam/merlin@opam:3.2.2@829ee6dd"
"[email protected]@d41d8cd9", "[email protected]@d41d8cd9",
"[email protected]@d41d8cd9", "[email protected]@d41d8cd9",
"@opam/merlin@opam:3.2.2@829ee6dd"
]
},
"@reason-native/[email protected]@d41d8cd9": {
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"reason-glfw": "^3.2.1022",
"isolinear": "^2.0.0",
"reasonFuzz": "*",
"reason-libvim": "8.10869.14001"
"reason-libvim": "8.10869.14001",
"esy-macdylibbundler": "*"
},
"resolutions": {
"@opam/cmdliner": "1.0.2",
Expand All @@ -53,6 +54,7 @@
"ocaml": "~4.7.0",
"@opam/merlin": "3.2.2",
"reperf": "^1.3.0",
"fs-extra": "7.0.1"
"fs-extra": "7.0.1",
"plist": "3.0.1"
}
}
Loading

0 comments on commit ceb5800

Please sign in to comment.