We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ae6a9e commit 3e357b3Copy full SHA for 3e357b3
1 file changed
scripts/build.js
@@ -116,9 +116,14 @@ try {
116
if (process.platform === 'darwin') {
117
console.log('\x1b[36mCreating macOS zip file...\x1b[0m');
118
try {
119
+ // Read version from package.json
120
+ const packagePath = path.join(__dirname, '..', 'package.json');
121
+ const packageData = JSON.parse(fs.readFileSync(packagePath, 'utf8'));
122
+ const version = packageData.version;
123
+
124
const distPath = path.join(__dirname, '..', 'dist');
125
const macAppPath = path.join(distPath, 'mac', 'Sploder.app');
- const zipFileName = 'Sploder-macOS.zip';
126
+ const zipFileName = `Sploder-macOS-${version}.zip`;
127
const zipFilePath = path.join(distPath, zipFileName);
128
129
// Check if the .app directory exists
0 commit comments