-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #148 from paulober/develop
Patch v3.4.0
- Loading branch information
Showing
103 changed files
with
184 additions
and
12,483 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,4 @@ azure-pipelines.yml | |
!dist/*.cjs | ||
!dist/scripts/*.py | ||
dist/scripts/__pycache__ | ||
!mpy_stubs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
|
||
# This script's purpose is to publish the VSCode extension to the VSCode Marketplace | ||
# and package binaries for each platform to reduced vsix size | ||
|
||
# Run npm run package | ||
npm run package | ||
|
||
# Create a folder dist/scripts if it doesn't exist | ||
mkdir -p dist/scripts | ||
|
||
# Define an array of platforms | ||
platforms=("win32" "macOS_arm64" "macOS_amd64" "linux_arm64" "linux_amd64") | ||
|
||
# Loop through the platforms | ||
for platform in "${platforms[@]}"; do | ||
# Copy the scripts to dist/scripts for each platform | ||
cp -r "node_modules/@paulober/pyboard-serial-com/scripts/wrapper_$platform" "dist/scripts" | ||
|
||
# Package the VSCode extension for the platform | ||
if [ "$platform" == "win32" ]; then | ||
npx @vscode/vsce package --no-yarn --target "win32-x64" | ||
elif [ "$platform" == "macOS_arm64" ]; then | ||
npx @vscode/vsce package --no-yarn --target "darwin-arm64" | ||
elif [ "$platform" == "macOS_amd64" ]; then | ||
npx @vscode/vsce package --no-yarn --target "darwin-x64" | ||
elif [ "$platform" == "linux_arm64" ]; then | ||
npx @vscode/vsce package --no-yarn --target "linux-arm64" | ||
elif [ "$platform" == "linux_amd64" ]; then | ||
npx @vscode/vsce package --no-yarn --target "linux-x64" | ||
fi | ||
|
||
# Remove the copied scripts for the current platform | ||
rm -r "dist/scripts/wrapper_$platform" | ||
done | ||
|
||
# Find all .vsix files and join them into a space-separated string | ||
package_paths=$(find . -name "*.vsix" -type f -exec echo -n "{} " \;) | ||
|
||
# Publish the packages | ||
npx @vscode/vsce publish --packagePath "$package_paths" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.