-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build all platforms properly + desktop testing (#1414)
- Loading branch information
Showing
11 changed files
with
148 additions
and
100 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ plz-out | |
types | ||
docs | ||
.yarn/* | ||
.github/* | ||
.yarnrc.yml | ||
.vscode/* | ||
|
||
|
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,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>com.apple.security.cs.allow-unsigned-executable-memory</key> | ||
<true/> | ||
<key>com.apple.security.cs.allow-jit</key> | ||
<true/> | ||
<key>com.apple.security.cs.disable-library-validation</key> | ||
<true/> | ||
</dict> | ||
</plist> |
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import {execSync} from 'child_process' | ||
|
||
// Get the current year and month | ||
const currentDate = new Date() | ||
const year = currentDate.getFullYear() | ||
const month = (currentDate.getMonth() + 1).toString().padStart(2, '0') | ||
const nextMonth = (currentDate.getMonth() + 2).toString().padStart(2, '0') | ||
|
||
// Get the number of commits in the current month | ||
const commitCount = execSync( | ||
`git log --since="${year}-${month}-01" --until="${year}-${nextMonth}-01" --oneline | wc -l`, | ||
) | ||
.toString() | ||
.trim().padStart(2, '0') | ||
|
||
// Construct the new version string | ||
const newVersion = `${year}.${month}.${commitCount}` | ||
|
||
pushTag(newVersion) | ||
|
||
function pushTag(tagName) { | ||
try { | ||
// Step 1: Create a lightweight tag | ||
execSync(`git tag ${tagName}`); | ||
|
||
console.log('Tag created:', tagName); | ||
|
||
// Step 2: Push the tag to remote | ||
// execSync(`git push origin ${tagName}`); | ||
|
||
console.log('Tag pushed:', tagName); | ||
} catch (error) { | ||
console.error('Error:', error.message); | ||
} | ||
} |
Oops, something went wrong.