Compare commits

..
10 Commits
Author SHA1 Message Date
dutchie031 7a59237d45 changed build strategy
publish-vs-code-extensions.yml / Publish VS Code Extension (push) Successful in 53s
2026-09-09 16:59:21 +02:00
dutchie031 67c1c197b0 updated package versions
publish-vs-code-extensions.yml / Publish VS Code Extension (push) Failing after 43s
2026-09-09 16:51:41 +02:00
dutchie031 54f6f3258f updated package versions
publish-vs-code-extensions.yml / Publish VS Code Extension (push) Failing after 36s
2026-09-09 16:50:05 +02:00
dutchie031 7b03863d29 updated package versions
publish-vs-code-extensions.yml / Publish VS Code Extension (push) Failing after 41s
2026-09-09 16:48:30 +02:00
dutchie031 c7dd5ca0f0 updated package versions
publish-vs-code-extensions.yml / Publish VS Code Extension (push) Failing after 45s
2026-09-09 16:46:39 +02:00
dutchie031 e94ba970dd updated package versions
publish-vs-code-extensions.yml / Publish VS Code Extension (push) Failing after 50s
2026-09-09 16:44:05 +02:00
dutchie031 e8728caa9b updated package versions
publish-vs-code-extensions.yml / Publish VS Code Extension (push) Failing after 34s
2026-09-09 16:29:13 +02:00
dutchie031 a5e6a9c658 Created CD pipeline
publish-vs-code-extensions.yml / Publish VS Code Extension (push) Failing after 27s
2026-09-09 16:27:00 +02:00
dutchie031 d3aaa8cd6f updated dev script
publish-vs-code-extensions.yml / Publish VS Code Extension (push) Successful in 26s
2026-08-15 16:41:30 +02:00
dutchie031 ed48c4d2de updated dev script
publish-vs-code-extensions.yml / Publish VS Code Extension (push) Successful in 29s
2026-08-15 16:38:06 +02:00
4 changed files with 855 additions and 184 deletions
@@ -2,7 +2,7 @@ on:
push:
branches:
- main
jobs:
publish:
name: Publish VS Code Extension
@@ -10,3 +10,75 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get version from package.json
id: version
run: |
VERSION=$(jq -r '.version' dutchies-dcs-scripting-tools/package.json)
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Version: $VERSION"
- name: Check if tag exists
id: tag_check
run: |
if git show-ref --verify --quiet "refs/tags/v${{ steps.version.outputs.version }}"; then
echo "tag_exists=true" >> $GITHUB_OUTPUT
echo "Tag v${{ steps.version.outputs.version }} already exists"
else
echo "tag_exists=false" >> $GITHUB_OUTPUT
echo "Tag v${{ steps.version.outputs.version }} does not exist"
fi
- name: Exit if tag exists
if: steps.tag_check.outputs.tag_exists == 'true'
run: |
echo "Tag already exists, exiting."
exit 1
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: |
cd dutchies-dcs-scripting-tools
npm install
- name: Build extension
run: |
cd dutchies-dcs-scripting-tools
npm run compile
- name: Package extension
if: steps.tag_check.outputs.tag_exists == 'false'
run: |
npm install
cd dutchies-dcs-scripting-tools
npm install
npm run package
npx @vscode/vsce package --no-dependencies
mv dutchies-dcs-scripting-tools-${{ steps.version.outputs.version }}.vsix ../dutchies-dcs-scripting-tools-${{ steps.version.outputs.version }}.vsix
- name: Create tag and release
if: steps.tag_check.outputs.tag_exists == 'false'
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag "v${{ steps.version.outputs.version }}"
git push origin "v${{ steps.version.outputs.version }}"
- name: Upload release assets
if: steps.tag_check.outputs.tag_exists == 'false'
uses: akkuman/gitea-release-action@v1
with:
tag_name: v${{ steps.version.outputs.version }}
name: Release v${{ steps.version.outputs.version }}
body: "VS Code Extension Release"
draft: false
files: |-
dutchies-dcs-scripting-tools-${{ steps.version.outputs.version }}.vsix
env:
NODE_OPTIONS: '--experimental-fetch'
+1 -1
View File
@@ -412,7 +412,7 @@ class Writer {
`-- This script can be referenced in DCS. Compiled script will then be loaded dynamically.`,
`-- This way you can test the compiled output without having to re-import the script into the mission every time.`,
`-- This file will only have to be re-imported when the name or location of the compiled script file changes.`,
`assert(loadfile("${actualFileLocation}"))()`
`assert(loadfile([[${actualFileLocation}]]))()`
];
fs.writeFileSync(devFileLocation, devLines.join('\n'), 'utf-8');
this.logger.info(`Development script written to ${devFileLocation}`);
+12 -12
View File
@@ -2,7 +2,7 @@
"name": "dutchies-dcs-scripting-tools",
"displayName": "Dutchies Dcs Scripting Tools",
"description": "Scripting tools to create DCS script and frameworks easier",
"version": "0.0.3",
"version": "0.0.5",
"author": {
"name": "dutchie031",
"email": "54616262+dutchie031@users.noreply.github.com"
@@ -15,11 +15,11 @@
"publisher": "dutchie031",
"license": "MIT",
"engines": {
"vscode": "^1.108.1"
"vscode": "1.108.1"
},
"repository": {
"type": "git",
"url": "https://github.com/dutchie031/DcsMissionScriptingTools"
"url": "https://git.dutchie031.com/dutchie031/DcsMissionScriptingTools"
},
"categories": [
"Other"
@@ -124,15 +124,15 @@
"test": "vscode-test"
},
"devDependencies": {
"@types/vscode": "^1.108.1",
"@types/mocha": "^10.0.10",
"@types/node": "22.x",
"typescript-eslint": "^8.52.0",
"eslint": "^9.39.2",
"esbuild": "^0.27.2",
"@types/vscode": "1.108.1",
"@types/mocha": "10.0.10",
"@types/node": "26.4.1",
"typescript-eslint": "8.70.0",
"eslint": "10.9.1",
"esbuild": "0.27.7",
"npm-run-all": "^4.1.5",
"typescript": "^5.9.3",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.5.2"
"typescript": "5.9.3",
"@vscode/test-cli": "0.0.15",
"@vscode/test-electron": "2.5.2"
}
}
+769 -170
View File
File diff suppressed because it is too large Load Diff