Commit Graph

2594 Commits

Author SHA1 Message Date
Namhyeon, Go
bc686476b0 Merge branch 'dev' of https://github.com/gnh1201/welsonjs into dev 2025-11-23 23:46:41 +09:00
Namhyeon, Go
f43217e0b1 Add optional components to installer script
Introduces selectable components for file association, Windows Service module, and additional tool downloads in the installation process. Registry and install/uninstall actions are now conditioned on component selection, improving customization for users.
2025-11-23 23:46:07 +09:00
5dd68d8992
Update lib/std.js
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
2025-11-23 23:32:27 +09:00
Namhyeon, Go
c4aed231da Update setup script metadata date
Changed the @updated_on field in setup.iss from 2025-11-21 to 2025-11-23 to reflect the latest modification.
2025-11-23 23:23:09 +09:00
Namhyeon, Go
84fd011e26 Revise test descriptions and tags for clarity
Improved the descriptions and tags for multiple test cases in test-oss-korea-2023.json to enhance clarity, consistency, and readability. Changes include standardizing terminology, correcting capitalization, and providing more precise explanations for each test.
2025-11-23 23:19:52 +09:00
227cd0f6d4 Deprecate Enumerator.toArray and update WMI version
Marked Enumerator.toArray as deprecated in favor of Array.from and updated its fallback implementation. Refactored lib/wmi.js to use Array.from instead of toArray, and bumped VERSIONINFO to 0.1.4. Modified setup.iss to add ScriptEngine and ScriptHostEncode registry entries and removed file associations for several script extensions.
2025-11-23 23:06:19 +09:00
a51e9ff1b4 Update launcher path in registry command
Changed the registry command for opening scripts to reference WelsonJS.Launcher.exe in the 'bin' subdirectory instead of the root application directory. This ensures the correct executable path is used after installation.
2025-11-21 19:17:05 +09:00
77dc2b88c5 Update user data directory logic and version info
Replaced usage of SYS.getEnvString("APPDATA") with SYS.getAppDataDir() for determining the user data directory. Updated VERSIONINFO to 0.5.4 to reflect the change.
2025-11-21 19:11:08 +09:00
5d907e3869 Update app data directory path and version info
Changed the app data directory from 'WelsonJS' to 'welsonjs' for consistency. Bumped VERSIONINFO to 0.1.7 to reflect the update.
2025-11-21 19:07:02 +09:00
fd3a34fc20 Update websocket.js for improved path handling
Refactored default WebSocket executable path selection to check for a user-specific installation before falling back to architecture-based defaults. Updated comments for clarity and incremented version to 0.2.4.
2025-11-21 18:57:23 +09:00
49ebde6835 Improve error handling in afterInstall.ps1
Enhanced error reporting by checking if caught errors are System.Exception and printing the appropriate message. This provides clearer output for both exception and non-exception error types during file download, extraction, and main script execution.
2025-11-21 17:57:18 +09:00
9b6fa4d233
Update afterInstall.ps1
Co-authored-by: qodo-merge-pro[bot] <151058649+qodo-merge-pro[bot]@users.noreply.github.com>
2025-11-21 16:55:27 +09:00
f2f16d7488
Update afterInstall.ps1
Co-authored-by: qodo-merge-pro[bot] <151058649+qodo-merge-pro[bot]@users.noreply.github.com>
2025-11-21 16:52:16 +09:00
ef966dfe1d Refactor install script and add websocat support
Refactored helper functions for clarity and consistency, including renaming and parameter changes. Added support for downloading and installing websocat, updated artifact URLs and extraction logic, and improved architecture-specific handling for optional tools. Enhanced output messages and error handling throughout the script.
2025-11-21 16:05:39 +09:00
cc86267471 Update launcher path in registry and shortcut
Changed the registry command and Start Menu shortcut to reference WelsonJS.Launcher.exe in the user app data directory, ensuring correct file location and execution.
2025-11-21 11:53:25 +09:00
Namhyeon, Go
c75859b350 Enable registry section in setup script
Uncommented the [Registry] section in setup.iss to allow registry entries to be created during installation. This change is necessary for proper file association and protocol handling.
2025-11-21 11:31:00 +09:00
15e6596285 Fix EXE_PATH case in service scripts
Updated the EXE_PATH variable in both installService.bat and uninstallService.bat to use 'welsonjs' instead of 'WelsonJS' for consistency and to avoid potential path issues.
2025-11-21 11:01:10 +09:00
ca8bd275bf Update service paths and installer registry keys
Service executable paths in installService.bat and uninstallService.bat now use %APPDATA% for improved portability. The setup.iss installer script updates registry keys to use the application name macro, adjusts file and icon paths to user appdata, and changes PowerShell execution flags. afterInstall.ps1 now downloads and extracts WelsonJS binary artifacts from a remote URL.
2025-11-21 10:50:31 +09:00
54a76f7078 Add afterInstall.ps1 to installer sources
Included afterInstall.ps1 in the setup script to ensure it is copied to the application directory during installation.
2025-11-20 17:34:24 +09:00
2e92255a3c Use 'using' statement for InstancesForm disposal
Replaces manual disposal of InstancesForm with a 'using' statement to ensure proper resource management and exception safety when recording to the metadata database.
2025-11-20 17:31:50 +09:00
4bd05fd2a2
Update afterInstall.ps1
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-11-20 17:26:11 +09:00
186561639e Add FILE module import and init PythonObject
Imported the FILE module in python3.js and updated PythonObject to initialize the default Python binary path upon creation. Also removed the copyright year range from the file header.
2025-11-20 17:24:26 +09:00
1a75388a69 Fix relative path calculation in file copy loop
Normalizes source directory path before calculating relative file paths to ensure correct substring indexing and prevent off-by-one errors when copying files.
2025-11-20 17:21:47 +09:00
b3b00771c5 Refactor zip file run logic in MainForm
Removed the _filePath field and refactored zip file handling to pass file paths directly as parameters. Simplified the RunAppPackageFile workflow and eliminated redundant methods for improved clarity and maintainability.
2025-11-20 17:14:49 +09:00
afe7d6213a Refactor deploy time recording and improve instance setup
Moved RecordFirstDeployTime from MainForm to Program for better separation of concerns. Updated instance directory creation and asset copying logic in Program.cs to support JS entrypoints, including library copying and first deploy time recording. Added a sleep call to helloworld.js for demonstration purposes.
2025-11-20 17:09:43 +09:00
33c64d50c9 Add afterInstall.ps1 and update tool paths to APPDATA
Introduces afterInstall.ps1 for post-install setup, downloading and extracting required tools to the APPDATA\WelsonJS directory. Updates code in http.js, python3.js, ovftool.js, wamr.js, and system.js to reference binaries from the new APPDATA location. Modifies setup.iss to run the PowerShell script after installation.
2025-11-20 16:44:20 +09:00
6f172aafe1 Revert "Enable COM interop registration in project config"
This reverts commit 4fb7b95c0e.
2025-11-20 14:56:59 +09:00
d156e40e6b Add Korea business area code checker example
Refactored korea_business_areacode.json to include metadata and expanded area code data. Added korea_biz_area_checker.js example script to read Excel files and match business numbers to area names using the updated area code data.
2025-11-19 12:23:22 +09:00
f86ea078c6 Add new file to .gitignore
Added do_not_push_production_on_friday.js to .gitignore to prevent accidental commits of this file.
2025-11-19 10:26:53 +09:00
9c9f865026 Add Korea business area code JSON data
Introduces a new data file containing business area codes for various regions in Korea. This will be used for region-based business logic or lookups.
2025-11-19 10:19:57 +09:00
0e40d890bf Merge branch 'dev' of https://github.com/gnh1201/welsonjs into dev 2025-11-19 09:52:37 +09:00
daea458f64
Update WelsonJS.Toolkit/WelsonJS.Launcher/Program.cs
Co-authored-by: qodo-merge-pro[bot] <151058649+qodo-merge-pro[bot]@users.noreply.github.com>
2025-11-16 18:58:48 +09:00
c392b6a08a
Update WelsonJS.Toolkit/WelsonJS.Launcher/MainForm.cs
Co-authored-by: qodo-merge-pro[bot] <151058649+qodo-merge-pro[bot]@users.noreply.github.com>
2025-11-15 20:39:11 +09:00
a03ea7f3b3
Update WelsonJS.Toolkit/WelsonJS.Launcher/Program.cs
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
2025-11-15 18:23:02 +09:00
c677c6907a Add CLI support for running script and zip files
Launcher now accepts a --file argument to run .js or .zip files directly from the command line. MainForm and Program.cs were refactored to support this, including new registry entries in setup.iss for file associations with WelsonJS Script extensions.
2025-11-15 18:08:47 +09:00
4fb7b95c0e Enable COM interop registration in project config
Added <RegisterForComInterop>True</RegisterForComInterop> to all build configurations in WelsonJS.Cryptography.vbproj to support COM interop registration for both Debug and Release builds.
2025-11-10 09:47:17 +09:00
Namhyeon, Go
ba7b3e3685 Revert "Merge pull request #340 from gnh1201/codex/create-winforms-for-websocket-management"
This reverts commit d71adb8001, reversing
changes made to 83b8e453f0.
2025-11-02 18:17:59 +09:00
d71adb8001
Merge pull request #340 from gnh1201/codex/create-winforms-for-websocket-management
Add WinForms interface for WebSocket management
2025-11-02 18:12:37 +09:00
Namhyeon, Go
cfcfaf3e1f Add WinForms interface for WebSocket management 2025-11-02 18:09:59 +09:00
83b8e453f0 Rename getFilesFromFolder to getFiles and deprecate old name
Renamed the getFilesFromFolder function to getFiles for clarity. The original getFilesFromFolder is now marked as deprecated and calls the new function, with a warning. Updated exports to reflect the change and bumped version to 0.2.17.
2025-10-13 16:23:03 +09:00
b6a95a7c50 Refactor path normalization and absolute path check
Introduced a new normalizePath function in file.js to handle path trimming and BOM removal. Updated isAbsolutePath to use normalizePath for more robust path checking. Modified msoffice.js to use isAbsolutePath instead of manual string checks for determining absolute paths.
2025-10-13 15:12:52 +09:00
7cba7895fd Add isAbsolutePath utility and update path handling
Introduced isAbsolutePath function in file.js to robustly check for absolute paths. Updated msoffice.js to use this utility for file path resolution in Excel.open, improving cross-platform compatibility and reliability. Version numbers incremented in both files.
2025-10-13 14:55:10 +09:00
90806493ed Refactor code editor launch logic
Extracted the code editor launch logic into a new LaunchEditor() method to reduce duplication. Both the button and menu item now use this method, and error handling for resource server startup is centralized.
2025-10-10 12:18:47 +09:00
a77c83736c Add editor and community buttons with icons to MainForm
Replaced the community link label with a button featuring an icon, and added a new button to start the editor with its own icon. Updated resource files and designer code to support these changes, and adjusted related event handlers and UI text for clarity.
2025-10-10 12:07:16 +09:00
ebe7b605cb Add Vary: Origin header and use Response.Close
Sets the 'Vary' header to 'Origin' for CORS responses to improve cache behavior. Replaces OutputStream.Close with Response.Close for proper response handling.
2025-10-09 22:04:27 +09:00
b32801c1c9 clean up the code
clean up the code
2025-10-09 21:14:41 +09:00
33d8fadc8f
Update WelsonJS.Toolkit/WelsonJS.Launcher/ResourceServer.cs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-10-04 19:39:58 +09:00
cd3e18a4c1 Merge branch 'dev' of https://github.com/gnh1201/welsonjs into dev 2025-10-04 18:11:15 +09:00
49263bb0ac Refactor CORS allowed origins initialization
Replaces GetAllowedOrigins with TryParseAllowedOrigins to initialize allowed origins once during static construction. Adds logging for invalid ResourceServerPrefix values and stores allowed origins in a static field for improved efficiency.
2025-10-04 18:09:03 +09:00
6e499bcedf
Update WelsonJS.Toolkit/WelsonJS.Launcher/ResourceServer.cs
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
2025-10-03 17:49:10 +09:00