await file download

This commit is contained in:
Nate Sesti 2023-08-02 22:40:54 -07:00
parent 2bc5547dc9
commit 0e6a0c9425
2 changed files with 15 additions and 18 deletions

View file

@ -113,18 +113,18 @@ jobs:
run: |
cd extension
npm run package
# npx vsce publish patch -p ${{ secrets.VSCE_TOKEN }}
# - name: Commit changes
# run: |
# git config --local user.email "action@github.com"
# git config --local user.name "GitHub Action"
# git commit -am "ci: 💚 Update package.json version [skip ci]"
npx vsce publish patch -p ${{ secrets.VSCE_TOKEN }}
- name: Commit changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -am "ci: 💚 Update package.json version [skip ci]"
# - name: Push changes
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# branch: ${{ github.ref }}
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
- name: Upload .vsix artifact
uses: actions/upload-artifact@v2

View file

@ -178,7 +178,7 @@ export async function startContinuePythonServer() {
}
if (shouldDownload) {
vscode.window.withProgress(
await vscode.window.withProgress(
{
location: vscode.ProgressLocation.Notification,
title: "Installing Continue server...",
@ -194,16 +194,13 @@ export async function startContinuePythonServer() {
// Get name of the corresponding executable for platform
if (os.platform() === "darwin") {
// Add necessary permissions
const [stdout, stderr] = await runCommand(`chmod +x ${destination}`);
console.log("Setting permissions for Continue server...");
console.log(stdout);
console.log(stderr);
fs.chmodSync(destination, 0o7_5_5);
const [stdout1, stderr1] = await runCommand(
`xattr -dr com.apple.quarantine ${destination}`
);
console.log("...");
console.log(stdout1);
console.log(stderr1);
console.log("stdout: ", stdout1);
console.log("stderr: ", stderr1);
}
// Run the executable