diff --git a/.gitignore b/.gitignore index f1bf4e4..114caa9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,8 @@ node_modules package-lock.json +dist-tauri +src-tauri/target +src-tauri/gen dist.DS_Store .git .gitignore @@ -7,6 +10,7 @@ dist.DS_Store *.iml yarn.lock *.lock +!src-tauri/Cargo.lock Makefile *.exe tsconfig.tsbuildinfo diff --git a/README.md b/README.md index 2c20387..fb89fd1 100644 --- a/README.md +++ b/README.md @@ -99,38 +99,23 @@ Download the latest release for your platform: If you want to build Auto-Git yourself, follow these steps: 1. Clone or download the repository to your local machine. -2. Install Node.js (version 16+ recommended) and npm. +2. Install Node.js, npm, Rust, and the Tauri prerequisites for your operating system. 3. Open a terminal, navigate into the project folder, and run: ```bash npm install ``` -4. Optional: If you need to adjust architectures or targets, modify `package.json` under the `"build"` section. - - Example for Windows x64 only: - ```json - "build": { - "win": { - "icon": "win/icon.ico", - "target": [ - { - "target": "nsis", - "arch": ["x64"] - } - ] - } - } - ``` -5. Build the distributables: +4. Run the app in development mode: + ```bash + npm start + ``` +5. Build the Tauri distributables: ```bash npm run dist ``` - - On an ARM64 machine, to produce an x64 Windows installer, first ensure `"arch": ["x64"]` is under `"win.target"`, then: - ```bash - npm run dist - ``` -6. The output installers/packages will be located in the `dist/` directory. +6. The output installers/packages will be located under `src-tauri/target/release/bundle/`. --- ## License -This project is licensed under the MIT License. See [LICENSE](LICENSE) for details. \ No newline at end of file +This project is licensed under the MIT License. See [LICENSE](LICENSE) for details. diff --git a/editor-reword.js b/editor-reword.js deleted file mode 100644 index ea90605..0000000 --- a/editor-reword.js +++ /dev/null @@ -1,13 +0,0 @@ -// editor-reword.js -const fs = require('fs'); -const map = JSON.parse(process.env.REBASE_COMMIT_MAP); -const msgFile = process.argv[2]; -const origMsg = fs.readFileSync(msgFile, 'utf-8'); - -// Hash suchen -const hashMatch = origMsg.match(/commit\\s+([a-f0-9]{7,40})/i); -const hash = hashMatch ? hashMatch[1] : null; -if (hash && map[hash]) { - fs.writeFileSync(msgFile, map[hash] + '\n'); -} -process.exit(0); \ No newline at end of file diff --git a/index.html b/index.html index 6a4a65b..6f97eaa 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,7 @@