@bjia56/portable-python
Advanced tools
Comparing version 0.1.82 to 0.1.83
@@ -52,2 +52,8 @@ import { IPortablePython, IPortablePythonOptions } from "./types"; | ||
/** | ||
* Checks if the build tag of the downloaded Python distribution is outdated (i.e. | ||
* the tag does not match the specified release tag). | ||
* @returns True if the tag is outdated, false otherwise. | ||
*/ | ||
isTagOutdated(): boolean; | ||
/** | ||
* Will download the compressed Python installation and extract it to | ||
@@ -54,0 +60,0 @@ * the installation directory. |
@@ -134,2 +134,15 @@ "use strict"; | ||
/** | ||
* Checks if the build tag of the downloaded Python distribution is outdated (i.e. | ||
* the tag does not match the specified release tag). | ||
* @returns True if the tag is outdated, false otherwise. | ||
*/ | ||
isTagOutdated() { | ||
const tagPath = (0, path_1.join)(this.extractPath, "build_tag.txt"); | ||
if (!(0, fs_1.existsSync)(tagPath)) { | ||
return true; | ||
} | ||
const tag = (0, fs_1.readFileSync)(tagPath, "utf-8").trim(); | ||
return tag !== this.releaseTag; | ||
} | ||
/** | ||
* Will download the compressed Python installation and extract it to | ||
@@ -157,2 +170,5 @@ * the installation directory. | ||
await (0, promises_1.rm)(downloadPath); | ||
// Write the selected build tag to a file for debugging purposes | ||
const tagPath = (0, path_1.join)(this.extractPath, "build_tag.txt"); | ||
await (0, promises_1.writeFile)(tagPath, this.releaseTag); | ||
await this._installer.postInstall(); | ||
@@ -159,0 +175,0 @@ } |
{ | ||
"name": "@bjia56/portable-python", | ||
"version": "0.1.82", | ||
"version": "0.1.83", | ||
"description": "Portable Python", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42065
586