Skip to content

Commit fa45fd0

Browse files
committed
Rename static releases to binary releases
More clear as discussed in PR.
1 parent 665ca01 commit fa45fd0

13 files changed

+46
-46
lines changed

‎.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dist*
44
out*
55
release/
66
release-npm-package/
7-
release-static/
7+
release-binary/
88
release-packages/
99
release-gcp/
1010
release-images/

‎ci/README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,19 @@ You can disable minification by setting `MINIFY=`.
7575
- Builds vscode into `./lib/vscode/out-vscode`.
7676
- [./ci/build/build-release.sh](./build/build-release.sh) (`yarn release`)
7777
- Bundles the output of the above two scripts into a single node module at `./release`.
78-
- [./ci/build/build-static-release.sh](./build/build-static-release.sh) (`yarn release:static`)
78+
- [./ci/build/build-binary-release.sh](./build/build-binary-release.sh) (`yarn release:binary`)
7979
- Requires a node module already built into `./release` with the above script.
80-
- Will build a static release with node and node_modules bundled into `./release-static`.
80+
- Will build a binary release with node and node_modules bundled into `./release-binary`.
8181
- [./ci/build/clean.sh](./build/clean.sh) (`yarn clean`)
8282
- Removes all build artifacts.
8383
- Will also `git reset --hard lib/vscode`.
8484
- Useful to do a clean build.
8585
- [./ci/build/code-server.sh](./build/code-server.sh)
86-
- Copied into static releases to run code-server with the bundled node binary.
87-
- [./ci/build/test-static-release.sh](./build/test-static-release.sh) (`yarn test:static-release`)
88-
- Ensures code-server in the `./release-static` directory works by installing an extension.
86+
- Copied into binary releases to run code-server with the bundled node binary.
87+
- [./ci/build/test-binary-release.sh](./build/test-binary-release.sh) (`yarn test:binary-release`)
88+
- Ensures code-server in the `./release-binary` directory works by installing an extension.
8989
- [./ci/build/build-packages.sh](./build/build-packages.sh) (`yarn package`)
90-
- Packages `./release-static` into a `.tar.gz` archive in `./release-packages`.
90+
- Packages `./release-binary` into a `.tar.gz` archive in `./release-packages`.
9191
- If on linux, [nfpm](https://github.com/goreleaser/nfpm) is used to generate `.deb` and `.rpm`.
9292
- [./ci/build/nfpm.yaml](./build/nfpm.yaml)
9393
- Used to configure [nfpm](https://github.com/goreleaser/nfpm) to generate `.deb` and `.rpm`.
@@ -131,8 +131,8 @@ Helps avoid clobbering the CI configuration.
131131
- [./steps/release.sh](./steps/release.sh)
132132
- Runs the release process.
133133
- Generates the npm package at `./release`.
134-
- [./steps/release-static.sh](./steps/release-static.sh)
135-
- Takes the output of the previous script and generates a static release and
134+
- [./steps/release-binary.sh](./steps/release-binary.sh)
135+
- Takes the output of the previous script and generates a binary release and
136136
release packages into `release-packages`.
137137
- [./steps/publish-npm.sh](./steps/publish-npm.sh)
138138
- Grabs the `npm-package` release artifact for the current commit and publishes it on npm.

‎ci/build/build-static-release.sh renamed to ‎ci/build/build-binary-release.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ main() {
55
cd "$(dirname "${0}")/../.."
66
source ./ci/lib.sh
77

8-
rsync "$RELEASE_PATH/" "$RELEASE_PATH-static"
9-
RELEASE_PATH+=-static
8+
rsync "$RELEASE_PATH/" "$RELEASE_PATH-binary"
9+
RELEASE_PATH+=-binary
1010

1111
# We cannot find the path to node from $PATH because yarn shims a script to ensure
1212
# we use the same version it's using so we instead run a script with yarn that

‎ci/build/build-packages.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -euo pipefail
33

44
# Packages code-server for the current OS and architecture into ./release-packages.
5-
# This script assumes that a static release is built already into ./release-static.
5+
# This script assumes that a binary release is built already into ./release-binary
66

77
main() {
88
cd "$(dirname "${0}")/../.."
@@ -29,9 +29,9 @@ main() {
2929
release_archive() {
3030
local release_name="code-server-$VERSION-$OS-$ARCH"
3131
if [[ $OS == "linux" ]]; then
32-
tar -czf "release-packages/$release_name.tar.gz" --transform "s/^\.\/release-static/$release_name/" ./release-static
32+
tar -czf "release-packages/$release_name.tar.gz" --transform "s/^\.\/release-binary/$release_name/" ./release-binary
3333
else
34-
tar -czf "release-packages/$release_name.tar.gz" -s "/^release-static/$release_name/" release-static
34+
tar -czf "release-packages/$release_name.tar.gz" -s "/^release-binary/$release_name/" release-binary
3535
fi
3636
echo "done (release-packages/$release_name)"
3737

‎ci/build/clean.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ main() {
88
rm -Rf \
99
out \
1010
release \
11-
release-static \
11+
release-binary \
1212
release-packages \
1313
release-gcp \
1414
release-images/ \

‎ci/build/code-server.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
# This script is intended to be bundled into the static releases.
3+
# This script is intended to be bundled into the binary releases.
44
# Runs code-server with the bundled Node binary.
55

66
# More complicated than readlink -f or realpath to support macOS.

‎ci/build/nfpm.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ license: "MIT"
1313
files:
1414
./ci/build/code-server-nfpm.sh: /usr/bin/code-server
1515
./ci/build/code-server.service: /usr/lib/systemd/user/code-server.service
16-
./release-static/**/*: "/usr/lib/code-server/"
16+
./release-binary/**/*: "/usr/lib/code-server/"

‎ci/build/test-static-release.sh renamed to ‎ci/build/test-binary-release.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ main() {
1010
local EXTENSIONS_DIR
1111
EXTENSIONS_DIR="$(mktemp -d)"
1212

13-
echo "Testing static release"
13+
echo "Testing binary release"
1414

15-
./release-static/bin/code-server --extensions-dir "$EXTENSIONS_DIR" --install-extension ms-python.python
15+
./release-binary/bin/code-server --extensions-dir "$EXTENSIONS_DIR" --install-extension ms-python.python
1616
local installed_extensions
17-
installed_extensions="$(./release-static/bin/code-server --extensions-dir "$EXTENSIONS_DIR" --list-extensions 2>&1)"
17+
installed_extensions="$(./release-binary/bin/code-server --extensions-dir "$EXTENSIONS_DIR" --list-extensions 2>&1)"
1818
if [[ $installed_extensions != "ms-python.python" ]]; then
1919
echo "Unexpected output from listing extensions:"
2020
echo "$installed_extensions"
2121
exit 1
2222
fi
2323

24-
echo "Static release works correctly"
24+
echo "Binary release works correctly"
2525
}
2626

2727
main "$@"

‎ci/steps/release-static.sh renamed to ‎ci/steps/release-binary.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ main() {
77
# https://github.com/actions/upload-artifact/issues/38
88
tar -xzf release-npm-package/package.tar.gz
99

10-
yarn release:static
11-
yarn test:static-release
10+
yarn release:binary
11+
yarn test:binary-release
1212
yarn package
1313
}
1414

‎doc/CONTRIBUTING.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ yarn --production
5151
node .
5252
```
5353

54-
Now you can make it static and build packages with:
54+
Now you can build binary packages with:
5555

5656
```
57-
yarn release:static
58-
yarn test:static-release
57+
yarn release:binary
58+
yarn test:binary-release
5959
yarn package
60-
# The static release is in ./release-static
61-
# .deb, .rpm and the static archive are in ./release-packages
60+
# The binary release is in ./release-binary
61+
# .deb, .rpm and the binary archive are in ./release-packages
6262
```
6363

6464
## Structure

‎doc/install.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
- [Arch Linux](#arch-linux)
1111
- [yarn, npm](#yarn-npm)
1212
- [macOS](#macos)
13-
- [Static Releases](#static-releases)
13+
- [Binary Releases](#binary-releases)
1414
- [Docker](#docker)
1515

1616
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
@@ -51,8 +51,8 @@ commands presented in the rest of this document.
5151
- `--dry-run` to echo the commands for the install process without running them.
5252
- `--method` to choose the installation method.
5353
- `--method=detect` to detect the package manager but fallback to `--method=archive`.
54-
- `--method=archive` to install a static release archive into `~/.local`.
55-
- `--prefix=/usr/local` to install a static release archive system wide.
54+
- `--method=archive` to install a binary release archive into `~/.local`.
55+
- `--prefix=/usr/local` to install a binary release archive system wide.
5656
- `--version=X.X.X` to install version `X.X.X` instead of latest.
5757
- `--help` to see full usage docs.
5858

@@ -61,13 +61,13 @@ commands presented in the rest of this document.
6161
- For Debian, Ubuntu and Raspbian it will install the latest deb package.
6262
- For Fedora, CentOS, RHEL and openSUSE it will install the latest rpm package.
6363
- For Arch Linux it will install the AUR package.
64-
- For any unrecognized Linux operating system it will install the latest static release into `~/.local`.
64+
- For any unrecognized Linux operating system it will install the latest binary release into `~/.local`.
6565

6666
- Add `~/.local/bin` to your `$PATH` to run code-server.
6767

6868
- For macOS it will install the Homebrew package.
6969

70-
- If Homebrew is not installed it will install the latest static release into `~/.local`.
70+
- If Homebrew is not installed it will install the latest binary release into `~/.local`.
7171
- Add `~/.local/bin` to your `$PATH` to run code-server.
7272

7373
- If ran on an architecture with no binary releases, it will install the npm package with `yarn` or `npm`.
@@ -136,7 +136,7 @@ brew services start code-server
136136
# Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml
137137
```
138138

139-
## Static Releases
139+
## Binary Releases
140140

141141
We publish self contained `.tar.gz` archives for every release on [github](https://github.com/cdr/code-server/releases).
142142
They bundle the node binary and `node_modules`.
@@ -148,7 +148,7 @@ They bundle the node binary and `node_modules`.
148148
You can add the code-server `bin` directory to your `$PATH` to easily execute `code-server`
149149
without the full path every time.
150150

151-
Here is an example script for installing and using a static `code-server` release on Linux:
151+
Here is an example script for installing and using a binary `code-server` release on Linux:
152152

153153
```bash
154154
mkdir -p ~/.local/lib ~/.local/bin

‎install.sh

+9-9
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,22 @@ Usage:
3030
Choose the installation method. Defaults to detect.
3131
- detect detects the system package manager and tries to use it.
3232
Full reference on the process is further below.
33-
- archive installs a static release archive into ~/.local
33+
- archive installs a binary release archive into ~/.local
3434
Add ~/.local/bin to your \$PATH to use it.
3535
--prefix <dir>
36-
Sets the prefix used by static release archives. Defaults to ~/.local
36+
Sets the prefix used by binary release archives. Defaults to ~/.local
3737
The release is unarchived into ~/.local/lib/code-server-X.X.X
3838
and the binary symlinked into ~/.local/bin/code-server
3939
To install system wide pass ---prefix=/usr/local
4040
4141
- For Debian, Ubuntu and Raspbian it will install the latest deb package.
4242
- For Fedora, CentOS, RHEL and openSUSE it will install the latest rpm package.
4343
- For Arch Linux it will install the AUR package.
44-
- For any unrecognized Linux operating system it will install the latest static
44+
- For any unrecognized Linux operating system it will install the latest binary
4545
release into ~/.local
4646
4747
- For macOS it will install the Homebrew package.
48-
- If Homebrew is not installed it will install the latest static release
48+
- If Homebrew is not installed it will install the latest binary release
4949
into ~/.local
5050
5151
- If ran on an architecture with no binary releases, it will install the
@@ -65,10 +65,10 @@ echo_latest_version() {
6565
echo "$version"
6666
}
6767

68-
echo_static_postinstall() {
68+
echo_archive_postinstall() {
6969
echo
7070
cat << EOF
71-
Static release has been installed into $ARCHIVE_INSTALL_PREFIX/lib/code-server-$VERSION
71+
Binary release has been installed into $ARCHIVE_INSTALL_PREFIX/lib/code-server-$VERSION
7272
Please extend your path to use code-server:
7373
PATH="$ARCHIVE_INSTALL_PREFIX/bin:\$PATH"
7474
Then you can run:
@@ -158,7 +158,7 @@ main() {
158158
ARCH="$(arch)"
159159
if [ ! "$ARCH" ]; then
160160
if [ "$METHOD" = archive ]; then
161-
echoerr "No static releases available for the architecture $(uname -m)."
161+
echoerr "No binary releases available for the architecture $(uname -m)."
162162
echoerr 'Please rerun without the "--method archive" flag to install from npm.'
163163
exit 1
164164
fi
@@ -304,7 +304,7 @@ install_aur() {
304304
}
305305

306306
install_archive() {
307-
echo "Installing static release v$VERSION"
307+
echo "Installing binary release archive v$VERSION"
308308
echo
309309

310310
fetch "https://github.com/cdr/code-server/releases/download/v$VERSION/code-server-$VERSION-$OS-$ARCH.tar.gz" \
@@ -327,7 +327,7 @@ install_archive() {
327327
"$sh_c" mv -f "$ARCHIVE_INSTALL_PREFIX/lib/code-server-$VERSION-$OS-$ARCH" "$ARCHIVE_INSTALL_PREFIX/lib/code-server-$VERSION"
328328
"$sh_c" ln -fs "$ARCHIVE_INSTALL_PREFIX/lib/code-server-$VERSION/bin/code-server" "$ARCHIVE_INSTALL_PREFIX/bin/code-server"
329329

330-
echo_static_postinstall
330+
echo_archive_postinstall
331331
}
332332

333333
install_npm() {

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"build": "./ci/build/build-code-server.sh",
1717
"build:vscode": "./ci/build/build-vscode.sh",
1818
"release": "./ci/build/build-release.sh",
19-
"release:static": "./ci/build/build-static-release.sh",
19+
"release:binary": "./ci/build/build-binary-release.sh",
2020
"release:github-draft": "./ci/build/release-github-draft.sh",
2121
"release:github-assets": "./ci/build/release-github-assets.sh",
22-
"test:static-release": "./ci/build/test-static-release.sh",
22+
"test:binary-release": "./ci/build/test-binary-release.sh",
2323
"package": "./ci/build/build-packages.sh",
2424
"_____": "",
2525
"fmt": "./ci/dev/fmt.sh",

0 commit comments

Comments
 (0)