Perforce:如何设置TypeMap

首先你需要服务器管理员账号来进行操作

打开CMD输入p4 typemap,点击回车

会自动代开TypeMap的这是文件

将下列内容复制进去即可

下面内容是我在UE常用的TypeMap上根据实践扩展而来,目前适用于大多数开发环境

TypeMap:

    # ───────────── 通用(公共) ─────────────

    # ➤ 自动生成产物(程序生成) → +w
    binary+w //....exe
    binary+w //....dll
    binary+w //....lib
    binary+w //....app
    binary+w //....dylib
    binary+w //....ipa
    binary+w //....so
    binary+w //....aar
    binary+w //....apk
    binary+w //....dex
    binary+w //....modules
    text+w   //....log
    text+w   //....min.js
    text+w   //....min.css
    text+w   //....map
    text+w   //....lock
    text+w   //....dist
    text+w   //....build
    text+w   //....out
    text+w   //....bin
    text+w   //....obj
    text+w   //....generated.cs
    text+w   //....generated.h
    text+w   //....g.cs
    text+w   //....pdb
    text+w   //....response
    text+w   //....target

    # ➤ 文本类(全部不加锁)
    text //....ini
    text //....config
    text //....json
    text //....xml
    text //....yaml
    text //....yml
    text //....csv
    text //....tsv
    text //....sh
    text //....bat
    text //....ps1
    text //....makefile
    text //....dockerfile
    text //....env
    text //....txt
    text //....md

    text //....py
    text //....java
    text //....cs
    text //....c
    text //....cpp
    text //....h
    text //....js
    text //....ts
    text //....jsx
    text //....tsx


    # ───────────── Unreal Engine ─────────────

    binary+l //....uasset
    binary+l //....umap
    binary+l //....upk
    binary+l //....udk
    binary+l //....ubulk
    text //....uplugin
    text+w //....uproject


    # ───────────── Unity ─────────────

    text //....meta
    text //....shader
    text //....cm
    text //....proc
    text //....md5mesh
    text //....md5anim
    text //....ma

    binary+l //....prefab
    binary+l //....mb
    binary+l //....mat
    binary+l //....psb
    binary+l //....fbx
    binary+l //....unity
    binary+l //....asset
    binary+l //....aas
    binary+l //....tga
    binary+l //....jpg
    binary+l //....png
    binary+l //....wav
    binary+l //....ogg
    binary+l //....demo
    binary+l //....roq


    # ───────────── Web 前端 ─────────────

    text //....html
    text //....htm
    text //....css
    text //....scss
    text //....sass
    text //....less
    text //....vue
    text //....svelte

    text //....eslintrc
    text //....prettierrc
    text //....babelrc
    text //....stylelintrc
    text //....editorconfig
    text //....env.local
    text //....env.production
    text //....env.development


    # ───────────── 小程序(微信/支付宝)─────────────

    text //....wxml
    text //....wxss
    text //....axml
    text //....acss
    text //....ttml
    text //....jss
    text //....mts


    # ───────────── iOS / macOS ─────────────

    text //....swift
    text //....m
    text //....mm
    text //....plist
    text //....storyboard
    text //....xib
    text //....entitlements
    text //....xcconfig


    # ───────────── Android ─────────────

    text //....kt
    text //....gradle
    binary+w //....dex
    binary+w //....aar
    binary+w //....apk
    binary+w //....so
posted @ 2025-10-15 14:21  mengzhishanghun  阅读(6)  评论(0)    收藏  举报