<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0"><channel><title>听雨落</title><link>http://localhost:8090</link><atom:link href="http://localhost:8090/rss.xml" rel="self" type="application/rss+xml"/><description>听雨落</description><generator>Halo v2.27.2</generator><language>zh-cn</language><image><url>http://localhost:8090/upload/93071492.jpeg</url><title>听雨落</title><link>http://localhost:8090</link></image><lastBuildDate>Mon, 16 Nov 2026 17:11:55 GMT</lastBuildDate><item><title><![CDATA[electron 问题]]></title><link>http://localhost:8090/archives/wei-ming-ming-wen-zhang</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=electron%20%E9%97%AE%E9%A2%98&amp;url=/archives/wei-ming-ming-wen-zhang" width="1" height="1" alt="" style="opacity:0;">
<p>electron 打包出错</p>
<pre><code>  • Detected arm64 process, HFS+ is unavailable. Creating dmg with APFS - supports Mac OSX 10.12+
  ⨯ Exit code: 1. Command failed: which python
  failedTask=build stackTrace=Error: Exit code: 1. Command failed: which python

    at /Users/monterey/Desktop/tool/project/tools_m/node_modules/builder-util/src/util.ts:135:18
    at ChildProcess.exithandler (node:child_process:430:5)
    at ChildProcess.emit (node:events:517:28)
    at maybeClose (node:internal/child_process:1098:16)
    at Socket.&lt;anonymous&gt; (node:internal/child_process:450:11)
    at Socket.emit (node:events:517:28)
    at Pipe.&lt;anonymous&gt; (node:net:350:12)
 ELIFECYCLE  Command failed with exit code 1.
</code></pre>]]></description><guid isPermaLink="false">/archives/wei-ming-ming-wen-zhang</guid><dc:creator>Rem Loyal</dc:creator><category>electron</category><category>JS</category><pubDate>Sun, 20 Apr 2025 14:06:54 GMT</pubDate></item><item><title><![CDATA[fnm  安装 （Windows)]]></title><link>http://localhost:8090/archives/fnm-an-zhuang-windows</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=fnm%20%20%E5%AE%89%E8%A3%85%20%EF%BC%88Windows%29&amp;url=/archives/fnm-an-zhuang-windows" width="1" height="1" alt="" style="opacity:0;">
<p style=""></p>
<p style=""><span style="font-size: 16px; color: rgb(77, 77, 77)">Fnm（Fast Node Manager）🚀 一个快速而简单的 </span><a href="https://so.csdn.net/so/search?q=Node.js&amp;spm=1001.2101.3001.7020" target="_blank" class="hl hl-1">Node.js</a><span style="font-size: 16px; color: rgb(77, 77, 77)"> 版本管理工具，使用 Rust 编写。</span></p>
<p style="">FNM_DIR E:\other\fnm\node</p>
<p style="">FNM_MULTISHELL_PATH E:\other\fnm\fnm_multishells</p>
<p style="">E:\other\fnm</p>
<p style="">E:\other\fnm\fnm_multishells</p>
<p style="">E:\other\fnm\catch\node_global</p>]]></description><guid isPermaLink="false">/archives/fnm-an-zhuang-windows</guid><dc:creator>Rem Loyal</dc:creator><pubDate>Sun, 23 Mar 2025 14:47:14 GMT</pubDate></item><item><title><![CDATA[ 获取当前用户的sid]]></title><link>http://localhost:8090/archives/wei-ming-ming-wen-zhang</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=%20%E8%8E%B7%E5%8F%96%E5%BD%93%E5%89%8D%E7%94%A8%E6%88%B7%E7%9A%84sid&amp;url=/archives/wei-ming-ming-wen-zhang" width="1" height="1" alt="" style="opacity:0;">
<h2 id="获取当前用户的sid">获取当前用户的sid</h2>
<pre><code class="language-nsis">!macro _GSID_Func_CALL
    System::Call "user32::FindWindow(i0,tProgram Manager)p.r1"
    System::Call user32::GetWindowThreadProcessId(pr1,*i.r2)i.r3
    System::Call Kernel32::OpenProcess(i0x0400,i0,ir2)i.r4
    System::Call Advapi32::OpenProcessToken(pr4,i0x0008,*i.r5)i.r9
    System::Call Advapi32::GetTokenInformation(pr5,i1,*i.r0,i0,*i.r7)i.r8
    System::Alloc $7
    Pop $0
    System::Call Advapi32::GetTokenInformation(pr5,i1,ir0,ir7,*i.r7)i.r8
    System::Call *$0(i.R0)
    System::Call Advapi32::LookupAccountSid(i0,iR0,t.R6,*i260,t.R7,*i260,*i .r2)
    System::Free $0
    System::Call *(&amp;t${NSIS_MAX_STRLEN})i.R3
    System::Call advapi32::LookupAccountName(t,tR6,iR3,*i${NSIS_MAX_STRLEN},t,*i${NSIS_MAX_STRLEN},*i)
    System::Call advapi32::ConvertSidToStringSid(iR3,*t.R4)
    ; StrCpy $0 $R4
    System::Free $R3
    System::Free $R4
    Push $R4
!macroend
</code></pre>
<h2 id="获取当前用户的sid-python实现">获取当前用户的sid,python实现</h2>
<pre><code class="language-python">
import ctypes
import ctypes.wintypes

# 加载必要的 Windows API 函数
user32 = ctypes.WinDLL('user32', use_last_error=True)
kernel32 = ctypes.WinDLL('kernel32', use_last_error=True)
advapi32 = ctypes.WinDLL('advapi32', use_last_error=True)

# 定义一些常量
PROCESS_QUERY_INFORMATION = 0x0400
TOKEN_QUERY = 0x0008
NSIS_MAX_STRLEN = 1024

# 函数声明
FindWindow = user32.FindWindowW
FindWindow.restype = ctypes.wintypes.HWND
FindWindow.argtypes = [ctypes.wintypes.LPCWSTR, ctypes.wintypes.LPCWSTR]

GetWindowThreadProcessId = user32.GetWindowThreadProcessId
GetWindowThreadProcessId.restype = ctypes.wintypes.DWORD
GetWindowThreadProcessId.argtypes = [ctypes.wintypes.HWND, ctypes.POINTER(ctypes.wintypes.DWORD)]

OpenProcess = kernel32.OpenProcess
OpenProcess.restype = ctypes.wintypes.HANDLE
OpenProcess.argtypes = [ctypes.wintypes.DWORD, ctypes.wintypes.BOOL, ctypes.wintypes.DWORD]

OpenProcessToken = advapi32.OpenProcessToken
OpenProcessToken.restype = ctypes.wintypes.BOOL
OpenProcessToken.argtypes = [ctypes.wintypes.HANDLE, ctypes.wintypes.DWORD, ctypes.POINTER(ctypes.wintypes.HANDLE)]

GetTokenInformation = advapi32.GetTokenInformation
GetTokenInformation.restype = ctypes.wintypes.BOOL
GetTokenInformation.argtypes = [ctypes.wintypes.HANDLE, ctypes.wintypes.DWORD, ctypes.wintypes.LPVOID, ctypes.wintypes.DWORD, ctypes.POINTER(ctypes.wintypes.DWORD)]

LookupAccountSidW = advapi32.LookupAccountSidW
LookupAccountSidW.restype = ctypes.wintypes.BOOL
LookupAccountSidW.argtypes = [ctypes.wintypes.LPWSTR, ctypes.wintypes.LPVOID, ctypes.wintypes.LPWSTR, ctypes.POINTER(ctypes.wintypes.DWORD), ctypes.wintypes.LPWSTR, ctypes.POINTER(ctypes.wintypes.DWORD), ctypes.POINTER(ctypes.wintypes.DWORD)]

ConvertSidToStringSidW = advapi32.ConvertSidToStringSidW
ConvertSidToStringSidW.restype = ctypes.wintypes.BOOL
ConvertSidToStringSidW.argtypes = [ctypes.wintypes.LPVOID, ctypes.POINTER(ctypes.wintypes.LPWSTR)]

LocalFree = kernel32.LocalFree
LocalFree.restype = ctypes.wintypes.HANDLE
LocalFree.argtypes = [ctypes.wintypes.HANDLE]

def get_sid_from_process():
    # 找到 "Program Manager" 窗口
    hwnd = FindWindow(None, "Program Manager")
    if not hwnd:
        raise ctypes.WinError(ctypes.get_last_error())
  
    # 获取窗口的进程ID
    process_id = ctypes.wintypes.DWORD()
    thread_id = GetWindowThreadProcessId(hwnd, ctypes.byref(process_id))
  
    if not thread_id:
        raise ctypes.WinError(ctypes.get_last_error())
  
    # 打开进程
    process_handle = OpenProcess(PROCESS_QUERY_INFORMATION, False, process_id)
    if not process_handle:
        raise ctypes.WinError(ctypes.get_last_error())
  
    # 打开进程令牌
    token_handle = ctypes.wintypes.HANDLE()
    if not OpenProcessToken(process_handle, TOKEN_QUERY, ctypes.byref(token_handle)):
        raise ctypes.WinError(ctypes.get_last_error())
  
    # 获取令牌信息所需的缓冲区大小
    token_info_size = ctypes.wintypes.DWORD()
    GetTokenInformation(token_handle, 1, None, 0, ctypes.byref(token_info_size))
  
    # 分配缓冲区并获取令牌信息
    token_info = ctypes.create_string_buffer(token_info_size.value)
    if not GetTokenInformation(token_handle, 1, token_info, token_info_size.value, ctypes.byref(token_info_size)):
        raise ctypes.WinError(ctypes.get_last_error())
  
    # 获取 SID
    sid = ctypes.cast(token_info, ctypes.POINTER(ctypes.wintypes.LPVOID)).contents
    name_size = ctypes.wintypes.DWORD(NSIS_MAX_STRLEN)
    domain_size = ctypes.wintypes.DWORD(NSIS_MAX_STRLEN)
    sid_name_use = ctypes.wintypes.DWORD()
  
    name = ctypes.create_unicode_buffer(name_size.value)
    domain = ctypes.create_unicode_buffer(domain_size.value)
  
    if not LookupAccountSidW(None, sid, name, ctypes.byref(name_size), domain, ctypes.byref(domain_size), ctypes.byref(sid_name_use)):
        raise ctypes.WinError(ctypes.get_last_error())
  
    # 将 SID 转换为字符串
    sid_string = ctypes.wintypes.LPWSTR()
    if not ConvertSidToStringSidW(sid, ctypes.byref(sid_string)):
        raise ctypes.WinError(ctypes.get_last_error())
  
    # 打印 SID 字符串
    result = sid_string.value
    LocalFree(sid_string)
  
    return result

if __name__ == "__main__":
    sid = get_sid_from_process()
    print(f"当前用户的 SID: {sid}")


</code></pre>
<p>解释：
 <br>
 FindWindow：查找名为 "Program Manager" 的窗口，它通常是桌面进程。
 <br>
 GetWindowThreadProcessId：获取该窗口的线程和进程 ID。
 <br>
 OpenProcess：使用进程 ID 打开进程。
 <br>
 OpenProcessToken：获取该进程的访问令牌。
 <br>
 GetTokenInformation：获取访问令牌的用户信息，这里需要两次调用，第一次用于获取所需缓冲区大小，第二次用于实际获取数据。
 <br>
 LookupAccountSidW：查找与 SID 关联的账户名称和域名。
 <br>
 ConvertSidToStringSidW：将 SID 转换为字符串形式。
 <br>
 LocalFree：释放分配的内存。
 <br>
 这个 Python 实现与原始的 NSIS 脚本执行的步骤基本相同，能够获取当前登录用户的 SID，即使在管理员权限下运行也能正确地获取用户信息。</p>
<h2 id="Rust-获取当前用户SID">Rust 获取当前用户SID</h2>
<pre><code>use std::os::windows::ffi::OsStrExt;
use std::{ffi::OsStr, time};
use std::{ptr, thread};
use widestring::WideCStr;
use winapi::{
    ctypes::c_void,
    shared::{minwindef::DWORD, sddl::ConvertSidToStringSidW, winerror::ERROR_INSUFFICIENT_BUFFER},
    um::{
        errhandlingapi::GetLastError,
        handleapi::{CloseHandle, INVALID_HANDLE_VALUE},
        processthreadsapi::{OpenProcess, OpenProcessToken},
        securitybaseapi::GetTokenInformation,
        winbase::LocalFree,
        winnt::{HANDLE, TOKEN_QUERY, TOKEN_USER},
        winuser::{FindWindowW, GetWindowThreadProcessId},
    },
};

fn get_sid_from_process() -&gt; Result&lt;String, std::io::Error&gt; {
    unsafe {
        // 查找 "Program Manager" 窗口
        let window_title: Vec&lt;u16&gt; = OsStr::new("Program Manager")
            .encode_wide()
            .chain(Some(0)) // 添加 null 终止符
            .collect();
        let hwnd = FindWindowW(ptr::null(), window_title.as_ptr());
        if hwnd.is_null() {
            return Err(std::io::Error::last_os_error());
        }

        // 获取进程 ID
        let mut process_id: DWORD = 0;
        let thread_id = GetWindowThreadProcessId(hwnd, &amp;mut process_id);
        if thread_id == 0 {
            return Err(std::io::Error::last_os_error());
        }

        // 打开进程句柄
        let process_handle =
            OpenProcess(winapi::um::winnt::PROCESS_QUERY_INFORMATION, 0, process_id);
        if process_handle == INVALID_HANDLE_VALUE {
            return Err(std::io::Error::last_os_error());
        }

        // 打开进程令牌
        let mut token_handle: HANDLE = ptr::null_mut();
        if OpenProcessToken(process_handle, TOKEN_QUERY, &amp;mut token_handle) == 0 {
            CloseHandle(process_handle);
            return Err(std::io::Error::last_os_error());
        }

        // 获取令牌信息大小
        let mut token_info_size: DWORD = 0;
        let status = GetTokenInformation(
            token_handle,
            winapi::um::winnt::TokenUser,
            ptr::null_mut(),
            0,
            &amp;mut token_info_size,
        );

        // 检查是否为缓冲区不足错误
        if status != 0 || GetLastError() != ERROR_INSUFFICIENT_BUFFER {
            CloseHandle(token_handle);
            CloseHandle(process_handle);
            return Err(std::io::Error::last_os_error());
        }

        // 分配缓冲区并获取令牌信息
        let mut buffer = vec![0u8; token_info_size as usize];
        if GetTokenInformation(
            token_handle,
            winapi::um::winnt::TokenUser,
            buffer.as_mut_ptr() as *mut _,
            token_info_size,
            &amp;mut token_info_size,
        ) == 0
        {
            CloseHandle(token_handle);
            CloseHandle(process_handle);
            return Err(std::io::Error::last_os_error());
        }

        // 提取 SID
        let token_user = &amp;*(buffer.as_ptr() as *const TOKEN_USER);
        let sid = token_user.User.Sid;

        // 转换 SID 到字符串
        let mut sid_string_ptr: *mut u16 = ptr::null_mut();
        if ConvertSidToStringSidW(sid as *mut _, &amp;mut sid_string_ptr) == 0 {
            CloseHandle(token_handle);
            CloseHandle(process_handle);
            return Err(std::io::Error::last_os_error());
        }

        // 转换字符串并释放内存
        let sid_cstr = WideCStr::from_ptr_str(sid_string_ptr);
        let sid_str = sid_cstr.to_string_lossy().to_owned();
        LocalFree(sid_string_ptr as *mut c_void);

        // 清理资源
        CloseHandle(token_handle);
        CloseHandle(process_handle);

        Ok(sid_str)
    }
}

fn main() {
    match get_sid_from_process() {
        Ok(sid) =&gt; println!("当前用户的 SID: {}", sid),
        Err(e) =&gt; eprintln!("错误: {}", e),
    }

    // let ten_millis = time::Duration::from_millis(10000);
    // let now = time::Instant::now();

    // thread::sleep(ten_millis);
}

</code></pre>]]></description><guid isPermaLink="false">/archives/wei-ming-ming-wen-zhang</guid><dc:creator>Rem Loyal</dc:creator><category>杂项</category><pubDate>Fri, 16 Aug 2024 11:42:38 GMT</pubDate></item><item><title><![CDATA[NSIS中系统特殊路径变量基础知识(修正)]]></title><link>http://localhost:8090/archives/wei-ming-ming-wen-zhang</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=NSIS%E4%B8%AD%E7%B3%BB%E7%BB%9F%E7%89%B9%E6%AE%8A%E8%B7%AF%E5%BE%84%E5%8F%98%E9%87%8F%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86%28%E4%BF%AE%E6%AD%A3%29&amp;url=/archives/wei-ming-ming-wen-zhang" width="1" height="1" alt="" style="opacity:0;">
<h3 id="前言">前言</h3>
<pre><code>在多年交流 NSIS 技术中，发现很多用户对 Windows 系统特殊文件夹路径方面的知识点还比较欠缺。大多用户只了解几个常用路径，比如 $INSTDIR、$WINDOWS、$DESKTOP、$SMPROGRAMS 等文件夹，对于其他不常用的路径就无从所知了，通常会采用截取和拼接字符串的方式来实现。殊不知，这样的方式根本不能通用，带来的影响是轻则在未来的 Windows 版本中微软可能对目录结构进行调整而导致路径不再适用，重则更换主机甚至更换用户就无效。实际上，很多常见的文件夹路径都是可以通过专用的方式来获取。Windows API 中有一个函数 SHGetFolderPath 可用以获取这些特殊路径。在很多编程语言或脚本中，也都能获取到或通过它们提供的变量或特殊字符串来引用这些路径，NSIS 中同样支持这些路径常量，具体可以参考 NSIS 用户手册的（NSIS.chm）的 4.2.3 章节。此 API 可以获取到的这些路径大多是”当前用户”和”公共用户”（所有用户）配置路径中的子目录，无法获取其他用户的路径。针对当前用户和公共用户这两个不同的环境，大多编程语言或脚本中通常以不同的前缀来区分。比如当前用户通常使用 user 前缀或没有前缀，而公共用户通常使用 common 前缀。但 NSIS 中则没有如此便利的方式，而是需要通过 SetShellVarContext 这个命令来控制获取哪个用户环境的路径。对于如何在 NSIS 中获取这些路径，通常会遇到两类用户。比如下面这两种情况：
</code></pre>
<p>Windows XP 时代，我曾遇到某安装包在 Vista 系统上创建 C:Documents and SettingsAll UsersApplication Data 这个路径，7z 解包得到伪代码[NSIS.nsi]，得知其做法是截取 $WINDIR 的前三个字符，再暴力拼接 Documents and SettingsAll UsersApplication Data 字符串这样的笨办法。此类用户对 NSIS 的脚本还是有一定了解，但对于少部分不常用的路径还是不知道如何获取，不知道在 NSIS 中同样有相应的方法可以直接获取该路径。在 NSIS 中，此路径需要配合 SetShellVarContext 命令才能正确获取。</p>
<p>又或者是有人提出这样的问题：如何获取当前用户名？详细了解后才知道，他想安装到 C:Users
 <username>
  AppDataLocal 这个路径。如果不深入了解，根本不知道此用户其实是想获取一个文件夹路径，但他的问题很难与最终目的建立起联系。此用户试图将某些路径，比如 C:Users
  <username>
   AppDataLocal 中的用户名部分进行替换来达成目的。在 Windows 10 之前，重装系统时如果不格式化原系统分区，直接进行覆盖安装，那么即使新的用户名也叫
   <username>
    ，但是相关的文件夹路径中用户名的会变成”<username>.随机字符串”。如果系统版本是 5.x，则目录结构都不一样，暴力拼接根本不可能拿到正确路径。部分用户最初并不知道这类路径是可以直接获取，导致提出的问题与实际的目的有很大偏差。在 NSIS 中，用 $LOCALAPPDATA 变量即可解决问题。</username>
   </username>
  </username>
 </username></p>
<p>即使 NSIS 中不提供对应变量的路径，我们也应该适用相对合理的拼接方式。比如先确认是否可以通过 Vista 之后系统提供的新 API SHGetKnownFolderPath 来获取，如果可行，则使用本文末尾提供的方法来获取。例如文章末尾提到的 AppData 下面的 LocalLow 文件夹。另外，也可以使用 ReadEnvStr 来读取环境变量来获取少部分 NSIS 不提供的路径。比如获取系统分区所在驱动器，读取 SYSTEMDRIVE 显然比截取 $WINDIR 前缀更好。</p>
<p>基于以上情况，特此编写此文档，罗列绝大多数常用的系统文件夹在 NSIS 中对应的变量名和参考路径，以及对应的 SetShellVarContext 参数设置。</p>
<h3 id="部分内容截图">部分内容截图</h3>
<p><img src="http://localhost:8090/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fwww.nsisfans.com%2Fwp-content%2Fuploads%2F2022%2F01%2F2101004685.jpg&amp;size=m" alt=""></p>
<p>来自 <a href="https://www.nsisfans.com/path-variables.html">NSIS中系统特殊路径</a></p>]]></description><guid isPermaLink="false">/archives/wei-ming-ming-wen-zhang</guid><dc:creator>Rem Loyal</dc:creator><category>NSIS</category><pubDate>Tue, 30 Jul 2024 02:15:41 GMT</pubDate></item><item><title><![CDATA[Brew 安装]]></title><link>http://localhost:8090/archives/1719479748914</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=Brew%20%E5%AE%89%E8%A3%85&amp;url=/archives/1719479748914" width="1" height="1" alt="" style="opacity:0;">
<h2 id="Brew-安装">Brew 安装</h2>
<pre><code>/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
</code></pre>
<h2 id="显示隐藏文件">显示隐藏文件</h2>
<pre><code>defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder
</code></pre>]]></description><guid isPermaLink="false">/archives/1719479748914</guid><dc:creator>Rem Loyal</dc:creator><pubDate>Thu, 27 Jun 2024 09:15:50 GMT</pubDate></item><item><title><![CDATA[node 相关配置]]></title><link>http://localhost:8090/archives/1718679150416</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=node%20%E7%9B%B8%E5%85%B3%E9%85%8D%E7%BD%AE&amp;url=/archives/1718679150416" width="1" height="1" alt="" style="opacity:0;">
<h1 id="Node配置全局和缓存路径">Node配置全局和缓存路径</h1>
<pre><code># 设置全局模块的安装路径到  "node_global" 文件夹 
npm config  set  prefix "E:\other\fnm\catch\node_global"

# 设置缓存到"node\_cache"文件夹 
npm config set cache "E:\other\fnm\catch\node_cache"
</code></pre>
<h1 id="pnpm-配置全局和缓存路径">pnpm 配置全局和缓存路径</h1>
<pre><code>pnpm config set global-bin-dir "E:\other\fnm\catch\.pnpm\cache"
pnpm config set cache-dir "E:\other\fnm\catch\.pnpm\cache"
pnpm config set state-dir "E:\other\fnm\catch\.pnpm\state"
pnpm config set global-dir "E:\other\fnm\catch\.pnpm\global"
pnpm config set store-dir "E:\other\fnm\catch\.pnpm\cache"
</code></pre>]]></description><guid isPermaLink="false">/archives/1718679150416</guid><dc:creator>Rem Loyal</dc:creator><category>JS</category><pubDate>Tue, 18 Jun 2024 02:55:40 GMT</pubDate></item><item><title><![CDATA[rustdesk-api-server 安装]]></title><link>http://localhost:8090/archives/1718589211314</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=rustdesk-api-server%20%E5%AE%89%E8%A3%85&amp;url=/archives/1718589211314" width="1" height="1" alt="" style="opacity:0;">
<p><a href="https://github.com/kingmo888/rustdesk-api-server">rustdesk-api-server</a> 安装</p>
<h2 id="docker-compose-方式">docker-compose 方式</h2>
<pre><code>version: "3.8"
services:
  rustdesk-api-server:
    container_name: rustdesk-api-server
    image: ghcr.io/kingmo888/rustdesk-api-server:latest
    environment:
      - CSRF_TRUSTED_ORIGINS=http://yourdomain.com:21114 #防跨域信任来源，可选
      - ID_SERVER=yourdomain.com #Web控制端使用的ID服务器
    volumes:
      - /yourpath/db:/rustdesk-api-server/db #修改/yourpath/db为你宿主机数据库挂载目录
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    network_mode: bridge
    ports:
      - "21114:21114"
    restart: unless-stopped
</code></pre>
<p>运行</p>
<pre><code>docker-compose -f  /yun/project/rustdesk/DockerCompose/rustdesk-api.yaml  up -d
</code></pre>
<h4 id="预构建运行">预构建运行</h4>
<pre><code>docker run -d \
  --name rustdesk-api-server \
  -p 21114:21114 \
  -e CSRF_TRUSTED_ORIGINS=http://yourdomain.com:21114 \ #防跨域信任来源，可选
  -e ID_SERVER=yourdomain.com \ #Web控制端使用的ID服务器
  -v /yourpath/db:/rustdesk-api-server/db \ #修改/yourpath/db为你宿主机数据库挂载目录
  -v /etc/timezone:/etc/timezone:ro \
  -v /etc/localtime:/etc/localtime:ro \
  --network bridge \
  --restart unless-stopped \
  ghcr.io/kingmo888/rustdesk-api-server:latest

</code></pre>]]></description><guid isPermaLink="false">/archives/1718589211314</guid><dc:creator>Rem Loyal</dc:creator><category>杂项</category><pubDate>Tue, 18 Jun 2024 01:53:36 GMT</pubDate></item><item><title><![CDATA[ubuntu20.04安装nginx并配置反向代理]]></title><link>http://localhost:8090/archives/1718555261888</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=ubuntu20.04%E5%AE%89%E8%A3%85nginx%E5%B9%B6%E9%85%8D%E7%BD%AE%E5%8F%8D%E5%90%91%E4%BB%A3%E7%90%86&amp;url=/archives/1718555261888" width="1" height="1" alt="" style="opacity:0;">
<h2 id="1-安装nginx-查看版本">1、安装nginx、查看版本</h2>
<pre><code>apt install nginx
nginx -v
</code></pre>
<h2 id="2-配置serve">2、配置serve</h2>
<h3 id="1-进入配置文件">1、进入配置文件</h3>
<pre><code>
cd /etc/nginx/sites-enabled
#编辑sites-enabled目录下的default文件
sudo vim default
  
</code></pre>
<h3 id="2-编辑default文件">2、编辑default文件</h3>
<p>1、文件中给定的server模板</p>
<pre><code class="language-js">listen:监听端口号，默认为80端口

server_name:服务器域名，未申请域名可直接填IP地址，也可不填

root :配置项目所在地址

index:配置HTML主页

try_files:当出现意外情况时，访问该页面。默认为404页面

</code></pre>
<h3 id="3--配置详情">3、 配置详情</h3>
<pre><code class="language-js">
#server {
#	listen 80;
#	listen [::]:80;
#
#	server_name example.com;
#
#	root /var/www/example.com;
#	index index.html;
#
#	location / {
#		try_files $uri $uri/ =404;
#	}
#}

</code></pre>
<h3 id="4-nginx反向代理">4、nginx反向代理</h3>
<pre><code>location /api {
proxy_pass http://xxxx;
#proxy_set_header Host $http_host;
proxy_connect_timeout 15;
proxy_send_timeout 15;
proxy_read_timeout 15;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
'/api':为自己项目反向代理的baseURL
</code></pre>
<h3 id="5-重启nginx">5、重启nginx</h3>
<pre><code>#重启nginx配置

sudo nginx -s reload

#重启nginx服务

sudo systemctl restart nginx.service
</code></pre>
<h3 id="6-访问IP-端口号-出现页面即配置成功-">6、访问IP+端口号，出现页面即配置成功！</h3>]]></description><guid isPermaLink="false">/archives/1718555261888</guid><dc:creator>Rem Loyal</dc:creator><pubDate>Sun, 16 Jun 2024 16:27:44 GMT</pubDate></item><item><title><![CDATA[node常用命令]]></title><link>http://localhost:8090/archives/1709691404918</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=node%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4&amp;url=/archives/1709691404918" width="1" height="1" alt="" style="opacity:0;">
<h1 id="node">node</h1>
<h2 id="删除文件">删除文件</h2>
<p>第一种（好用的在后面）</p>
<h3 id="1使用rimraf">1.使用rimraf：</h3>
<pre><code class="language-js">//使用rimraf可以完全删除目标文件夹（包括目录和文件），比普通的rm -rf node_modules/ 更可靠。
npm install -g rimraf
rimraf node_modules
</code></pre>
<h3 id="2使用npx">2.使用npx：</h3>
<pre><code class="language-js">npm rimraf node_modules
</code></pre>
<p>//如果不想全局安装rimraf，也可以使用npx命令，它会在执行时自动下载并执行所需的软件包</p>
<h3 id="3使用npm自带的命令">3.使用npm自带的命令：</h3>
<pre><code class="language-js">npm uninstall -g nodemon --save-dev
</code></pre>
<p>如果你只是想卸载某个特定的依赖包（比如nodemon），可以使用npm uninstall命令。如果依赖包被列在package.json文件的devDependencies中，则需要使用–save-dev参数</p>
<h1 id="pnpm">pnpm</h1>
<pre><code class="language-js">清除缓存
pnpm store prune
</code></pre>
<h2 id="pnpm-electron-打包">pnpm electron 打包</h2>
<p>出现以下错误</p>
<p><img src="http://localhost:8090/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fimage.png&amp;size=m" alt="image.png"></p>
<p>修改 pnpm.cjs 文件</p>
<pre><code class="language-js">把 #!/usr/bin/env node  修改为  #!node

</code></pre>]]></description><guid isPermaLink="false">/archives/1709691404918</guid><dc:creator>Rem Loyal</dc:creator><pubDate>Wed, 6 Mar 2024 04:39:05 GMT</pubDate></item><item><title><![CDATA[md文档]]></title><link>http://localhost:8090/archives/1709691241674</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=md%E6%96%87%E6%A1%A3&amp;url=/archives/1709691241674" width="1" height="1" alt="" style="opacity:0;">
<h1 id="vite-react-electron">vite-react-electron</h1>
<p><a href="https://github.com/vitejs/awesome-vite"><img src="http://localhost:8090/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fawesome.re%2Fmentioned-badge.svg&amp;size=m" alt="awesome-vite"></a></p>
<p><img src="http://localhost:8090/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fimg.shields.io%2Fgithub%2Fstars%2Fcaoxiemeihao%2Fvite-react-electron%3Fcolor%3Dfa6470&amp;size=m" alt="GitHub stars"></p>
<p><img src="http://localhost:8090/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fimg.shields.io%2Fgithub%2Fissues%2Fcaoxiemeihao%2Fvite-react-electron%3Fcolor%3Dd8b22d&amp;size=m" alt="GitHub issues"></p>
<p><img src="http://localhost:8090/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fimg.shields.io%2Fgithub%2Flicense%2Fcaoxiemeihao%2Fvite-react-electron&amp;size=m" alt="GitHub license"></p>
<p><a href="https://nodejs.org/about/releases"><img src="http://localhost:8090/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fimg.shields.io%2Fstatic%2Fv1%3Flabel%3Dnode%26message%3D14.18.0%2520%257C%257C%2520%253E%3D16.0.0%26logo%3Dnode.js%26color%3D3f893e&amp;size=m" alt="Required Node.JS &gt;= 14.18.0 || &gt;=16.0.0"></a></p>
<p><a href="http://localhost:8090/README.md">English</a> | 简体中文</p>
<h2 id="概述">概述</h2>
<p>📦 开箱即用 &nbsp;</p>
<p>🎯 基于官方的 <a href="https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts">template-react-ts</a>, 低侵入性 &nbsp;</p>
<p>🌱 结构清晰，可塑性强 &nbsp;</p>
<p>💪 支持在渲染进程中使用 Electron、Node.js API &nbsp;</p>
<p>🔩 支持 C/C++ 模块 &nbsp;</p>
<p>🖥 很容易实现多窗口 &nbsp;</p>
<h2 id="快速开始">快速开始</h2>
<pre><code class="language-sh">
# clone the project

gitclonehttps://github.com/electron-vite/electron-vite-react.git


# enter the project directory

cdelectron-vite-react


# install dependency

npminstall


# develop

npmrundev

</code></pre>
<h2 id="调试">调试</h2>
<p><img src="http://localhost:8090/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Felectron-vite-react-debug.gif&amp;size=m" alt="electron-vite-react-debug.gif"></p>
<h2 id="目录">目录</h2>
<p><em>🚨 默认情况下, <code>electron</code> 文件夹下的文件将会被构建到 <code>dist-electron</code></em></p>
<pre><code class="language-tree">
├── electron &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Electron 源码文件夹

│ &nbsp; ├── main &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Main-process 源码

│ &nbsp; └── preload &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Preload-scripts 源码

│

├── release &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;构建后生成程序目录

│ &nbsp; └── {version}

│ &nbsp; &nbsp; &nbsp; ├── {os}-{os_arch} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 未打包的程序(绿色运行版)

│ &nbsp; &nbsp; &nbsp; └── {app_name}_{version}.{ext} &nbsp; &nbsp; &nbsp; 应用安装文件

│

├── public &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 同 Vite 模板的 public

└── src &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;渲染进程源码、React代码

</code></pre>
<h2 id="-额外的功能">🔧 额外的功能</h2>
<ol>
 <li>
  <p>Electron 自动更新 👉 <a href="http://localhost:8090/src/components/update/README.zh-CN.md">阅读文档</a></p>
 </li>
 <li>
  <p>Playwright 测试</p>
 </li>
</ol>
<h2 id="-faq">❔ FAQ</h2>
<ul>
 <li>
  <p><a href="https://github.com/electron-vite/vite-plugin-electron-renderer#dependency-pre-bundling">C/C++ addons, Node.js modules - Pre-Bundling</a></p>
 </li>
 <li>
  <p><a href="https://github.com/electron-vite/vite-plugin-electron-renderer#dependencies-vs-devdependencies">dependencies vs devDependencies</a></p>
 </li>
</ul>
<h2 id="---">🍵 🍰 🍣 🍟</h2>
<p>&lt;imgwidth="270"src="<a href="https://github.com/caoxiemeihao/blog/blob/main/assets/$qrcode/$.png?raw=true%22%3E">https://github.com/caoxiemeihao/blog/blob/main/assets/$qrcode/$.png?raw=true"&gt;</a></p>]]></description><guid isPermaLink="false">/archives/1709691241674</guid><dc:creator>Rem Loyal</dc:creator><pubDate>Wed, 6 Mar 2024 02:14:24 GMT</pubDate></item><item><title><![CDATA[Python 常用命令]]></title><link>http://localhost:8090/archives/1709516882899</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=Python%20%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4&amp;url=/archives/1709516882899" width="1" height="1" alt="" style="opacity:0;">
<h1 id="Python-常用命令">Python 常用命令</h1>
<p>创建虚拟环境</p>
<pre><code>python -m venv venv   
.\venv\Scripts\activate  
</code></pre>]]></description><guid isPermaLink="false">/archives/1709516882899</guid><dc:creator>Rem Loyal</dc:creator><pubDate>Mon, 4 Mar 2024 02:41:58 GMT</pubDate></item><item><title><![CDATA[Sequelize 配置]]></title><link>http://localhost:8090/archives/1709169590142</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=Sequelize%20%E9%85%8D%E7%BD%AE&amp;url=/archives/1709169590142" width="1" height="1" alt="" style="opacity:0;">
<h1 id="Sequelize-多种运算符">Sequelize 多种运算符</h1>
<pre><code class="language-javascript">
const { Op } = require("sequelize");
Post.findAll({
  where: {
    [Op.and]: [{ a: 5 }, { b: 6 }],            // (a = 5) AND (b = 6)
    [Op.or]: [{ a: 5 }, { b: 6 }],             // (a = 5) OR (b = 6)
    someAttribute: {
      // 基本
      [Op.eq]: 3,                              // = 3
      [Op.ne]: 20,                             // != 20
      [Op.is]: null,                           // IS NULL
      [Op.not]: true,                          // IS NOT TRUE
      [Op.or]: [5, 6],                         // (someAttribute = 5) OR (someAttribute = 6)

      // 使用方言特定的列标识符 (以下示例中使用 PG):
      [Op.col]: 'user.organization_id',        // = "user"."organization_id"

      // 数字比较
      [Op.gt]: 6,                              // &gt; 6
      [Op.gte]: 6,                             // &gt;= 6
      [Op.lt]: 10,                             // &lt; 10
      [Op.lte]: 10,                            // &lt;= 10
      [Op.between]: [6, 10],                   // BETWEEN 6 AND 10
      [Op.notBetween]: [11, 15],               // NOT BETWEEN 11 AND 15

      // 其它操作符

      [Op.all]: sequelize.literal('SELECT 1'), // &gt; ALL (SELECT 1)

      [Op.in]: [1, 2],                         // IN [1, 2]
      [Op.notIn]: [1, 2],                      // NOT IN [1, 2]

      [Op.like]: '%hat',                       // LIKE '%hat'
      [Op.notLike]: '%hat',                    // NOT LIKE '%hat'
      [Op.startsWith]: 'hat',                  // LIKE 'hat%'
      [Op.endsWith]: 'hat',                    // LIKE '%hat'
      [Op.substring]: 'hat',                   // LIKE '%hat%'
      [Op.iLike]: '%hat',                      // ILIKE '%hat' (不区分大小写) (仅 PG)
      [Op.notILike]: '%hat',                   // NOT ILIKE '%hat'  (仅 PG)
      [Op.regexp]: '^[h|a|t]',                 // REGEXP/~ '^[h|a|t]' (仅 MySQL/PG)
      [Op.notRegexp]: '^[h|a|t]',              // NOT REGEXP/!~ '^[h|a|t]' (仅 MySQL/PG)
      [Op.iRegexp]: '^[h|a|t]',                // ~* '^[h|a|t]' (仅 PG)
      [Op.notIRegexp]: '^[h|a|t]',             // !~* '^[h|a|t]' (仅 PG)

      [Op.any]: [2, 3],                        // ANY (ARRAY[2, 3]::INTEGER[]) (PG only)
      [Op.match]: Sequelize.fn('to_tsquery', 'fat &amp; rat') // 匹配文本搜索字符串 'fat' 和 'rat' (仅 PG)

      // 在 Postgres 中, Op.like/Op.iLike/Op.notLike 可以结合 Op.any 使用:
      [Op.like]: { [Op.any]: ['cat', 'hat'] }  // LIKE ANY (ARRAY['cat', 'hat'])

      // 还有更多的仅限 postgres 的范围运算符,请参见下文
    }
  }
});

</code></pre>]]></description><guid isPermaLink="false">/archives/1709169590142</guid><dc:creator>Rem Loyal</dc:creator><category>JS</category><pubDate>Thu, 29 Feb 2024 01:21:00 GMT</pubDate></item><item><title><![CDATA[node-gyp 环境配置]]></title><link>http://localhost:8090/archives/1709087293658</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=node-gyp%20%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE&amp;url=/archives/1709087293658" width="1" height="1" alt="" style="opacity:0;">
<h1 id="环境配置">环境配置</h1>
<p>安装node ,版本 &gt; 16.0.0</p>
<p>安装 node-gyp</p>
<p>参考 <a href="https://www.npmjs.com/package/node-gyp">node-gpy</a></p>
<pre><code>
npm install -g node-gyp

</code></pre>
<h2 id="配置-node-gyp-环境">配置 node-gyp 环境</h2>
<h3 id="手动安装工具和配置">手动安装工具和配置：</h3>
<p>安装 Visual C++ 生成环境：按照 node-gyp 文档提示 推荐使用 <a href="https://visualstudio.microsoft.com/zh-hans/thank-you-downloading-visual-studio/?sku=BuildTools">Visual Studio Build Tools</a> 安装，选择 Visual studio 2019，并勾选下方选项耐心等待。。。
 <br>
 <img src="http://localhost:8090/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fp1-juejin.byteimg.com%2Ftos-cn-i-k3u1fbpfcp%2Fbafe706d75e2480ebaacca1882166371~tplv-k3u1fbpfcp-zoom-in-crop-mark%3A1512%3A0%3A0%3A0.awebp%3F&amp;size=m"></p>
<p>参考 <a href="https://juejin.cn/post/7042123168722452516">node-gyp 环境配置</a></p>
<p>安装 Python 环境 （当前应用建议大于 3.9）</p>
<p>设置 npm 的 Python 路径</p>
<pre><code>npm config set python "D:\app\python\python.exe"

</code></pre>
<p>安装 node-gyp 依赖项</p>
<p>进入 node 的根目录，找到 install_tools.bat 脚本文件 ，点击运行 （中间卡住按回车键）</p>
<pre><code>//设置淘宝镜像
npm config set registry  https://registry.npmmirror.com

npm config set electron_mirror https://registry.npmmirror.com

</code></pre>
<p>重够依赖</p>
<pre><code>npm cache clean --force

rimraf node_modules

./node_modules/.bin/electron-rebuild.cmd

npm rebuild

</code></pre>
<p>electron-bulider 打包特别慢解决办法
 <br>
 参考 <a href="https://blog.csdn.net/sinat_41292836/article/details/108002416">打包特别慢解决办法</a></p>]]></description><guid isPermaLink="false">/archives/1709087293658</guid><dc:creator>Rem Loyal</dc:creator><pubDate>Wed, 28 Feb 2024 02:29:27 GMT</pubDate></item><item><title><![CDATA[GIT 常用命令]]></title><link>http://localhost:8090/archives/1709086977304</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=GIT%20%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4&amp;url=/archives/1709086977304" width="1" height="1" alt="" style="opacity:0;">
<h3 id="Tag-设置">Tag 设置</h3>
<pre><code>git reflog     //  查看每次操作对应的commitId账号
 
git reset --hard commitId       // 本地端口回滚指定的版本
 
git push -f    // 强制推送到远程分支 
 
git log --oneline    // 查看所有提交的版本号 。



// 打tag
git tag -a v1.0.0 -m "2023-12-24 PC_Tools V1.0.0"

git push origin --tags   // 推送tags


git tag -a 标签名称 -m 附注信息
or
git tag -a 标签名称 提交版本号 -m 附注信息
</code></pre>
<h3 id="储藏">储藏</h3>
<h4 id="添加储藏">添加储藏</h4>
<pre><code>将代码储藏起来
git stash
在储藏代码的时候设置一些信息
git stash save "message"
</code></pre>
<h4 id="删除储藏">删除储藏</h4>
<pre><code>git stash drop [stash name]：删除指定的储藏。
git stash clear：清除所有的储藏。
</code></pre>
<h4 id="恢复储藏">恢复储藏</h4>
<pre><code>git stash pop：把最新的储藏删掉，并且把储藏的代码恢复出来。

git stash apply：把所有的储藏代码全部恢复出来。
</code></pre>
<h4 id="查看所有储藏">查看所有储藏</h4>
<pre><code>git stash list：查看所有的储藏。
</code></pre>
<h4 id="储藏未跟踪的文件">储藏未跟踪的文件</h4>
<p>默认情况下<code>git stash</code>只会储藏那些被跟踪的文件。如果想要储藏那些未被跟踪的文件，那么可以加上<code>--include-untracked</code>参数。命令如下：</p>
<pre><code class="language-git">git stash --include-untracked
</code></pre>
<p>我们还可以使用git stash -a来储藏工作区所有的文件。包括跟踪的文件，没有跟踪的文件，以及在.gitignore中指定了不需要跟踪的文件。</p>]]></description><guid isPermaLink="false">/archives/1709086977304</guid><dc:creator>Rem Loyal</dc:creator><category>git</category><pubDate>Wed, 28 Feb 2024 02:23:47 GMT</pubDate></item><item><title><![CDATA[GitHub中Alpha、Beta、RC、GA的区别，点击左上角的master可查看]]></title><link>http://localhost:8090/archives/githubzhong-alpha-beta-rc-gade-qu-bie-dian-ji-zuo-shang-jiao-de-masterke-cha-kan</link><description><![CDATA[<img src="http://localhost:8090/plugins/feed/assets/telemetry.gif?title=GitHub%E4%B8%ADAlpha%E3%80%81Beta%E3%80%81RC%E3%80%81GA%E7%9A%84%E5%8C%BA%E5%88%AB%EF%BC%8C%E7%82%B9%E5%87%BB%E5%B7%A6%E4%B8%8A%E8%A7%92%E7%9A%84master%E5%8F%AF%E6%9F%A5%E7%9C%8B&amp;url=/archives/githubzhong-alpha-beta-rc-gade-qu-bie-dian-ji-zuo-shang-jiao-de-masterke-cha-kan" width="1" height="1" alt="" style="opacity:0;">
<p style="">Alpha：内部测试版。
 <br>
 是内部测试版,一般不向外部发布,会有很多Bug.一般只有测试人员使用。</p>
<p style="text-align: start; ">Beta：公开测试版。
 <br>
 也是测试版，这个阶段的版本会一直加入新的功能。在Alpha版之后推出。</p>
<p style="text-align: start; ">RC：(Release Candidate)
 <br>
 顾名思义么 ! 用在软件上就是候选版本。系统平台上就是发行候选版本。RC版不会再加入新的功能了，主要着重于除错。</p>
<p style="text-align: start; ">GA:General Availability,
 <br>
 正式发布的版本，在国外都是用GA来说明release版本的。</p>
<p style="text-align: start; ">Release:
 <br>
 该版本意味“最终版本”，在前面版本的一系列测试版之后，终归会有一个正式版本，是最终交付用户使用的一个版本。该版本有时也称为标准版。一般情况下，Release不会以单词形式出现在软件封面上，取而代之的是符号(R)。</p>
<p style="text-align: start; ">RTM：(Release to Manufacture)
 <br>
 是给工厂大量压片的版本，内容跟正式版是一样的，不过RTM版也有出限制、评估版的。但是和正式版本的主要程序代码都是一样的。</p>
<p style="text-align: start; ">OEM：
 <br>
 是给计算机厂商随着计算机贩卖的，也就是随机版。只能随机器出货，不能零售。只能全新安装，不能从旧有操作系统升级。包装不像零售版精美，通常只有一面CD和说明书(授权书)。</p>
<p style="text-align: start; ">RVL：
 <br>
 号称是正式版，其实RVL根本不是版本的名称。它是中文版/英文版文档破解出来的。</p>
<p style="text-align: start; ">EVAL：
 <br>
 而流通在网络上的EVAL版，与“评估版”类似，功能上和零售版没有区别。</p>
<p style="text-align: start; ">RTL：
 <br>
 Retail(零售版)是真正的正式版，正式上架零售版。在安装盘的i386文件夹里有一个eula.txt，最后有一行EULAID，就是你的版本。比如简体中文正式版是EULAID:WX.4_PRO_RTL_CN，繁体中文正式版是WX.4_PRO_RTL_TW。其中：如果是WX.开头是正式版，WB.开头是测试版。_PRE，代表家庭版；_PRO，代表专业版。</p>
<p style="text-align: start; ">α、β、λ常用来表示软件测试过程中的三个阶段，
 <br>
 α是第一阶段，一般只供内部测试使用；
 <br>
 β是第二个阶段，已经消除了软件中大部分的不完善之处，但仍有可能还存在缺陷和漏洞，一般只提供给特定的用户群来测试使用；
 <br>
 λ是第三个阶段，此时产品已经相当成熟，只需在个别地方再做进一步的优化处理即可上市发行。</p>]]></description><guid isPermaLink="false">/archives/githubzhong-alpha-beta-rc-gade-qu-bie-dian-ji-zuo-shang-jiao-de-masterke-cha-kan</guid><dc:creator>Rem Loyal</dc:creator><category>git</category><pubDate>Mon, 26 Feb 2024 02:04:37 GMT</pubDate></item></channel></rss>