-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Description of Pake's code structure
Tw93 edited this page Apr 8, 2023
·
3 revisions
├── app.csv
├── bin
├── cli.js
├── dist
│ └── cli.js
├── icns2png.py
├── package.json
├── pake-default.icns
├── script
├── src-tauri
│ ├── assets
│ ├── build.rs
│ ├── Cargo.lock
│ ├── Cargo.toml
│ ├── icons
│ ├── png
│ ├── src
│ ├ ├──main.rs
│ ├ ├──app
│ ├ └──inject
│ ├── pake.json
│ ├── tauri.conf.json
│ ├── tauri.linux.conf.json
│ ├── tauri.macos.conf.json
│ └── tauri.windows.conf.json
└── tsconfig.json
- app.csv:Used for batch replacement and packaging of bash/bat command.
- bin:It is written in TypeScript and is the source code of the Pake cli, the Pake command line packaging tool. You can use
npm run cli: build
to generate the final configuration file 'dist cli. js'. - cli.js:The entry file of pake-cli. This file calls the 'dist cli. js' file, which is basically not modified and can be ignored.
- dist\cli.js:Generated by
npm run cli: build
. - icns2png.py:Written in python 3, it is used to convert Mac default icns icons to windows/Linux icons in ico and png formats.
- package.json:The npm module depends on the configuration file, which is used to build the basic development environment when running
npm i
andnpm run xxx
. - pake-default.icns:The default icon of pake, applicable to MacOS.
- script:A script for batch packaging multiple apps, with sd built-inBinary package. You can use
npm run build: all unix
andnpm run build: all windows
to call the batch packaging function of Mac/Linux and Windows respectively. - src-tauri/assets:It stores a Linux desktop icon configuration file and a Windows msi installation configuration file.
- src-tauri/build.rs:The tauri compiler entry does not need to be modified and can be ignored.
- src-tauri/Cargo.lock:The cargo package management configuration result file can be ignored.
- src-tauri/Cargo.toml:The cargo package depends on the configuration file, which is used to manage the information of various crate versions. It basically does not need to be modified and can be ignored.
- src-tauri/icons:A series of icon files in icns format are stored, which are suitable for MacOS application icons.
- src-tauri/png:Generated from the icons folder above, it stores ico and png files, which are applicable to Linux/Windows application icons.
- src-tauri/src/main.rs:The main program file needs to be modified. The cross platform migration scheme focuses on this.
- src-tauri/src/inject:The js code matched with the main program file is used to add shortcut key monitoring, page rendering effects, and so on.
- src-tauri/pake.json:The main configuration file is used to control the package name, version number, open link, window size, etc.
- src-tauri/tauri.linux.conf.json:The configuration file used when compiling the Linux platform, including Linux specific icons, maintainers, binary formats, mapping, etc.
- src-tauri/tauri.macos.conf.json:Configuration files used for compiling the MacOS platform, including MacOS specific icons, maintainers, binary formats, and so on.
- src-tauri/tauri.windows.conf.json:The configuration file used when compiling the Windows platform, including Windows specific icons, maintainers, binary formats, small icon mapping in the upper left corner, and so on.
- tsconfig.json:TypeScript configuration. It basically does not need to be modified and can be ignored.