|
| 1 | +# Som DVPS 🚀 |
| 2 | + |
| 3 | +**Som DVPS** is a custom, high-performance code editor built on the robust core of Visual Studio Code. This repository contains the source code, build scripts, and customization tools to build, run, and distribute your own version. |
| 4 | + |
| 5 | +--- |
| 6 | + |
| 7 | +## 🛠️ Step 1: Prerequisites (Critical) |
| 8 | + |
| 9 | +Before you do anything, you **MUST** have these specific versions installed. |
| 10 | + |
| 11 | +### 1. Node.js (v20.x or v22.x) |
| 12 | +You need a recent version of Node.js. The project is tested with **v22.21.1**. |
| 13 | +* **Direct Download (Windows x64 MSI):** [Download Node.js v22.21.1](https://nodejs.org/dist/v22.12.0/node-v22.12.0-x64.msi) |
| 14 | +* **Verify installation:** |
| 15 | + ```cmd |
| 16 | + node -v |
| 17 | + ``` |
| 18 | + *(Output should be `v20.x.x` or `v22.x.x`)* |
| 19 | +
|
| 20 | +### 2. Visual Studio 2022 Build Tools |
| 21 | +You need the Microsoft C++ compiler to build the native modules used by the editor. |
| 22 | +* **Direct Download Installer:** [vs_buildtools.exe](https://aka.ms/vs/17/release/vs_buildtools.exe) |
| 23 | +* **Installation Instructions:** |
| 24 | + 1. Run the installer. |
| 25 | + 2. Select **"Desktop development with C++"** workload. |
| 26 | + 3. On the **right side**, ensure these specific components are checked: |
| 27 | + * ✅ **MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)** |
| 28 | + * ✅ **Windows 11 SDK (10.0.xxxxx.x)** |
| 29 | + * ✅ **C++ CMake tools for Windows** |
| 30 | + * ✅ **MSVC v143 - VS 2022 C++ x64/x86 Spectre-mitigated libs** (Optional, but recommended to avoid warnings) |
| 31 | +
|
| 32 | +### 3. Python |
| 33 | +* Install Python 3 from the [Microsoft Store](https://apps.microsoft.com/store/detail/python-311/9NRWMJP3717K) or [python.org](https://www.python.org/downloads/). |
| 34 | +
|
| 35 | +--- |
| 36 | +
|
| 37 | +## 📥 Step 2: Clone & Install |
| 38 | +
|
| 39 | +1. **Clone the repository:** |
| 40 | + ```cmd |
| 41 | + git clone https://github.com/yousumohamed/Som-Dvps-Code1.git |
| 42 | + cd Som-Dvps-Code1 |
| 43 | + ``` |
| 44 | +
|
| 45 | +2. **Run the automated installer:** |
| 46 | + We have created a special script that handles all the complex setup for you. |
| 47 | + ```cmd |
| 48 | + .\install_som_dvps.bat |
| 49 | + ``` |
| 50 | + * *This script sets strict build flags and installs all NPM dependencies.* |
| 51 | + * *Wait for it to finish. If it succeeds, you are ready!* |
| 52 | +
|
| 53 | +--- |
| 54 | +
|
| 55 | +## 🏃♂️ Step 3: How to Run |
| 56 | +
|
| 57 | +There are two ways to run the app depending on what you are doing. |
| 58 | +
|
| 59 | +### ⚡ Option A: "Just Run It" (Fastest) |
| 60 | +Use this if you just want to launch the editor and use it. |
| 61 | +```cmd |
| 62 | +npm run som-dvps |
| 63 | +``` |
| 64 | +* **What it does:** Launches the pre-compiled version of the app immediately. |
| 65 | + |
| 66 | +### 🧑💻 Option B: "Developer Mode" (Watch Changes) |
| 67 | +Use this if you are editing the source code (JS/TS files) and want to see changes live. |
| 68 | + |
| 69 | +1. Open **Terminal 1** and run: |
| 70 | + ```cmd |
| 71 | + npm run watch |
| 72 | + ``` |
| 73 | + *(This starts the incremental compiler. Wait for it to quiet down.)* |
| 74 | +
|
| 75 | +2. Open **Terminal 2** and run: |
| 76 | + ```cmd |
| 77 | + npm run som-dvps |
| 78 | + ``` |
| 79 | + *(Now, if you change a file, Terminal 1 will recompile it, and you can reload Terminal 2 to see changes.)* |
| 80 | +
|
| 81 | +--- |
| 82 | +
|
| 83 | +## 📦 Step 4: How to Build a Release (.exe) |
| 84 | +
|
| 85 | +Ready to share **Som DVPS** with the world? You can build a professional installer. |
| 86 | +
|
| 87 | +1. **Close all running instances** of Som DVPS. |
| 88 | +2. Run the build script: |
| 89 | + ```cmd |
| 90 | + .\build_release.bat |
| 91 | + ``` |
| 92 | +3. **Wait patiently.** This process takes **15-20 minutes**. |
| 93 | + * It cleans old files. |
| 94 | + * It compiles and minifies the code (runs `gulp minify`). |
| 95 | + * It builds the Windows executables. |
| 96 | + * It creates a Setup Installer. |
| 97 | +
|
| 98 | +### 🎉 Where is my Installer? |
| 99 | +Once the script says **"Build Complete!"**, look in these folders: |
| 100 | +
|
| 101 | +* **The Installer (Share this file):** |
| 102 | + `C:\code\vscode\.build\win32-x64\system-setup\VSCodeSetup.exe` |
| 103 | + *(Rename this to `SomDVPS_Setup.exe` before sharing!)* |
| 104 | +
|
| 105 | +* **The Zippable Folder:** |
| 106 | + `C:\code\vscode\.build\win32-x64\Som DVPS-win32-x64\` |
| 107 | +
|
| 108 | +--- |
| 109 | +
|
| 110 | +## 🔧 Troubleshooting & Customization |
| 111 | +
|
| 112 | +### How to Change the Icon? |
| 113 | +1. Replace the file `resources\win32\code.ico` with your own `.ico` file. |
| 114 | +2. Run `build_release.bat` to bake it into the `.exe`. |
| 115 | +
|
| 116 | +### "Spectre-mitigated libraries are required" Error? |
| 117 | +1. Open **Visual Studio Installer**. |
| 118 | +2. Click **Modify** on your Build Tools. |
| 119 | +3. Go to **Individual Components**. |
| 120 | +4. Search for "Spectre". |
| 121 | +5. Check **MSVC v143 - VS 2022 C++ x64/x86 Spectre-mitigated libs (Latest)**. |
| 122 | +6. Click **Modify** to install. |
| 123 | +
|
| 124 | +### How to Change the Name? |
| 125 | +1. Open `product.json`. |
| 126 | +2. Edit `nameShort`, `nameLong`, and `applicationName`. |
| 127 | +3. Rebuild using `build_release.bat`. |
| 128 | +
|
| 129 | +--- |
| 130 | +**Som DVPS Team** - *Built for Developers, by Developers.* |
0 commit comments