Skip to content

Commit a48df4e

Browse files
committed
chore: prepare for crates.io release
1 parent a73b048 commit a48df4e

File tree

4 files changed

+24
-7
lines changed

4 files changed

+24
-7
lines changed

.github/workflows/nightly.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,14 @@ jobs:
9898
7z a -tzip odoo-lsp-${{ matrix.target }}.zip ./odoo-lsp.exe
9999
else
100100
mv ./target/${{ matrix.target }}/release/odoo-lsp .
101-
tar -czvf odoo-lsp-${{ matrix.target }}.tar.gz ./odoo-lsp
101+
tar -czvf odoo-lsp-${{ matrix.target }}.tgz ./odoo-lsp
102102
fi
103103
104104
- name: Upload artifacts
105105
uses: actions/upload-artifact@v3
106106
with:
107-
path: ./odoo-lsp-${{ matrix.target }}.${{ matrix.runs-on == 'windows-latest' && 'zip' || 'tar.gz' }}
108-
name: odoo-lsp-${{ matrix.target }}.${{ matrix.runs-on == 'windows-latest' && 'zip' || 'tar.gz' }}
107+
path: ./odoo-lsp-${{ matrix.target }}.${{ matrix.runs-on == 'windows-latest' && 'zip' || 'tgz' }}
108+
name: odoo-lsp-${{ matrix.target }}.${{ matrix.runs-on == 'windows-latest' && 'zip' || 'tgz' }}
109109

110110
build-extension:
111111
needs: check
@@ -165,4 +165,5 @@ jobs:
165165
name: ${{ env.TAG }}
166166
tag_name: ${{ env.TAG }}
167167
generate_release_notes: true
168-
prerelease: ${{ github.event.inputs.prerelease }}
168+
# https://medium.com/@sohail.ra5/github-actions-passing-boolean-input-variables-to-reusable-workflow-call-42d39bf7342e
169+
prerelease: ${{ github.event.inputs.prerelease == 'true' }}

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,30 @@
11
[package]
22
name = "odoo-lsp"
3-
version = "0.1.0"
3+
version = "0.1.0-dev.3"
44
edition = "2021"
5+
authors = ["Viet Dinh <[email protected]>"]
6+
description = "Language server for Odoo Python/JS/XML"
7+
repository = "https://github.com/Desdaemon/odoo-lsp"
8+
license = "MIT"
9+
keywords = ["lsp", "language-server", "python", "javascript", "xml"]
10+
categories = ["development-tools"]
511

612
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
713

814
[profile.release]
915
lto = "thin"
1016
codegen-units = 1
1117

18+
[package.metadata.binstall]
19+
pkg-url = "{repo}/releases/download/v{version}/{name}-{target}{archive-suffix}"
20+
bin-dir = "{bin}{binary-ext}"
21+
22+
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
23+
pkg-fmt = "zip"
24+
25+
[package.metadata.binstall.overrides.i686-pc-windows-msvc]
26+
pkg-fmt = "zip"
27+
1228
[dependencies]
1329
env_logger = "0.10.0"
1430
ropey = "1.5.0"

client/src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const REPO = "https://github.com/Desdaemon/odoo-lsp";
4949

5050
async function downloadLspBinary(context: ExtensionContext) {
5151
const isWindows = process.platform === "win32";
52-
const archiveExtension = isWindows ? ".zip" : ".tar.gz";
52+
const archiveExtension = isWindows ? ".zip" : ".tgz";
5353
const runtimeDir = context.globalStorageUri.fsPath;
5454
await mkdir(runtimeDir, { recursive: true });
5555

0 commit comments

Comments
 (0)