Skip to content

Commit

Permalink
Merge pull request #46 from LedgerHQ/cev/Fix-publish-workflow
Browse files Browse the repository at this point in the history
Fix publish workflow
  • Loading branch information
cedelavergne-ledger authored May 31, 2024
2 parents 2fb028c + 33f0e4d commit ce765d0
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ jobs:
- name: Publish to Visual Studio Marketplace
run: npm run deploy
env:
pat: ${{ secrets.VSCE_PAT }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.7.1]

### Fixed

* Fix regression on AppName detection on Windows platform
* Fix Env variable in Deploy workflow

## [0.7.0]

### Changed
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ This extension contributes the following settings:

## Release Notes

## 0.7.1

* Fix regression on AppName detection on Windows platform
* Fix Env variable in Deploy workflow

## 0.7.0

* Update `webpack` and `electron` versions and dependencies
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ledger-dev-tools",
"displayName": "Ledger Dev Tools",
"description": "Tools to accelerate development of apps for Ledger devices.",
"version": "0.7.0",
"version": "0.7.1",
"publisher": "LedgerHQ",
"license": "Apache",
"icon": "resources/ledger-square.png",
Expand Down Expand Up @@ -251,7 +251,7 @@
"ts-loader": "^9.4.3",
"typescript": "^5.1.3",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.1",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4"
}
}
6 changes: 3 additions & 3 deletions src/appSelector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export function findAppInFolder(folderUri: vscode.Uri): App | undefined {
let tomlContent = toml.parse(fileContent);
[appLanguage, buildDirPath, compatibleDevices, testsDir, testsUseCases, buildUseCases] = parseManifest(tomlContent);
if (appLanguage === "C") {
appName = getAppName(folderStr.replace(/^file?:\/\//, ''));
appName = getAppName(folderUri.fsPath);
} else {
let hostBuildDirPath = buildDirPath.startsWith("./") ? path.join(appFolderUri.fsPath, buildDirPath) : buildDirPath;
[appName, packageName] = parseCargoToml(path.join(hostBuildDirPath, "Cargo.toml"));
Expand All @@ -232,7 +232,7 @@ export function findAppInFolder(folderUri: vscode.Uri): App | undefined {
break;
}
case "makefile": {
appName = getAppName(folderStr.replace(/^file?:\/\//, ''));
appName = getAppName(folderUri.fsPath);
testsDir = findFunctionalTestsWithoutManifest(appFolderUri);
showManifestWarning(appFolderName, false);
break;
Expand All @@ -255,7 +255,7 @@ export function findAppInFolder(folderUri: vscode.Uri): App | undefined {
// Add the app to the list
if (found) {
if (appLanguage === "C") {
variants = getAppVariants(folderStr.replace(/^file?:\/\//, ''), appName, appFolderUri);
variants = getAppVariants(folderUri.fsPath, appName, appFolderUri);
if (variants.values.length > 1) {
vscode.commands.executeCommand("setContext", "ledgerDevTools.showSelectVariant", true);
} else {
Expand Down

0 comments on commit ce765d0

Please sign in to comment.