{"_id":"@denixjg/publisher-gitea","name":"@denixjg/publisher-gitea","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@denixjg/publisher-gitea","description":"Publish your Electron Forge apps to Gitea with ease","version":"1.0.0","main":"dist/PublisherGitea.js","types":"dist/PublisherGitea.d.ts","repository":{"type":"git","url":"git+https://github.com/DenixJG/publisher-gitea.git"},"scripts":{"build":"tsc","prepare":"npm run build"},"keywords":["electron-forge","publisher","gitea"],"author":{"name":"DenixJG","email":"rafael.popescu140@gmail.com"},"license":"MIT","publishConfig":{"access":"public"},"devDependencies":{"@types/fs-extra":"^11.0.4","@types/mime-types":"^2.1.4","@types/node":"^22.13.9","@types/node-fetch":"^2.6.12","typescript":"^5.8.2"},"dependencies":{"@electron-forge/publisher-base":"^7.7.0","@electron-forge/shared-types":"^7.7.0","chalk":"^5.4.1","form-data":"^4.0.2","fs-extra":"^11.3.0","mime-types":"3.0.0","node-fetch":"^3.3.2"},"_id":"@denixjg/publisher-gitea@1.0.0","gitHead":"4c27d201d3606183d8a477fda4df6a73266050a8","bugs":{"url":"https://github.com/DenixJG/publisher-gitea/issues"},"homepage":"https://github.com/DenixJG/publisher-gitea#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-n4COjjqvqrCLRdt+hLnMal944NCcxpmwKRBau1C/LbwyO/UhX6rS/9VYyH3C+wzH+eZOw1SDigEKowzHRa0HhQ==","shasum":"ab00c324be6192b67186ef655973085289dc55d4","tarball":"https://registry.npmjs.org/@denixjg/publisher-gitea/-/publisher-gitea-1.0.0.tgz","fileCount":11,"unpackedSize":15162,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIB8LW+nn9n2ZogKZVp6+yds5brRvf5wz8/I1ubGQvEhoAiEAzwngUyOdF3kcRsLJa7rVDUHOR75x6ZxUgB363uI2f4w="}]},"_npmUser":{"name":"denixjg","email":"rafael.popescu140@gmail.com"},"directories":{},"maintainers":[{"name":"denixjg","email":"rafael.popescu140@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/publisher-gitea_1.0.0_1741687169177_0.9645798944207125"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-11T09:59:29.113Z","1.0.0":"2025-03-11T09:59:29.350Z","modified":"2025-03-11T09:59:29.656Z"},"maintainers":[{"name":"denixjg","email":"rafael.popescu140@gmail.com"}],"description":"Publish your Electron Forge apps to Gitea with ease","homepage":"https://github.com/DenixJG/publisher-gitea#readme","keywords":["electron-forge","publisher","gitea"],"repository":{"type":"git","url":"git+https://github.com/DenixJG/publisher-gitea.git"},"author":{"name":"DenixJG","email":"rafael.popescu140@gmail.com"},"bugs":{"url":"https://github.com/DenixJG/publisher-gitea/issues"},"license":"MIT","readme":"# Publisher Gitea\n\nA publisher for Electron Forge that allows you to publish your application's artifacts to Gitea releases.\n\n## Installation\n\n```bash\nnpm install --save-dev @denixjg/publisher-gitea\n```\n\n## Usage\n\nAdd the following to your Forge config:\n\n```js\n{\n  publishers: [\n    {\n      name: '@denixjg/publisher-gitea',\n      config: {\n        repository: {\n          owner: 'your-username',\n          name: 'your-repo-name'\n        },\n        baseUrl: 'https://gitea.yourdomain.com',\n        authToken: 'your-gitea-token',\n        draft: true,\n        prerelease: false,\n        tagPrefix: 'v'\n      }\n    }\n  ]\n}\n```\n\n## Configuration\n\n| Option | Type | Description | Required |\n|--------|------|-------------|-----------|\n| `repository.owner` | string | The username or organization that owns the repository | Yes |\n| `repository.name` | string | The name of the repository | Yes |\n| `baseUrl` | string | The base URL of your Gitea instance | Yes |\n| `authToken` | string | API token with permission to upload releases (can also be set via GITEA_TOKEN environment variable) | Yes |\n| `draft` | boolean | Whether to create the release as a draft (default: true) | No |\n| `prerelease` | boolean | Whether to mark the release as a pre-release (default: false) | No |\n| `tagPrefix` | string | String to prepend to the version number for the release tag (default: \"v\") | No |\n| `force` | boolean | Whether to re-upload assets if they already exist (default: false) | No |\n\n## Authentication\n\nYou can provide the authentication token in two ways:\n\n1. Via the config object: `authToken: 'your-token'`\n2. Via environment variable: `GITEA_TOKEN=your-token`\n\nTo create a token in Gitea:\n1. Go to Settings > Applications\n2. Generate a new token with the `write:repository` scope\n\n## Example\n\nHere's a complete example of how to configure the publisher:\n\n```js\nmodule.exports = {\n  publishers: [\n    {\n      name: '@denixjg/publisher-gitea',\n      config: {\n        repository: {\n          owner: 'acme',\n          name: 'electron-app'\n        },\n        baseUrl: 'https://gitea.acme.com',\n        authToken: process.env.GITEA_TOKEN,\n        draft: true,\n        prerelease: false,\n        tagPrefix: 'v',\n        force: false\n      }\n    }\n  ]\n}\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-899a0161a6b01e9de2e7a1a620b9026c"}