Skip to content

Commit

Permalink
fix: zip release
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 committed Dec 28, 2023
1 parent 17b11fe commit 1245b82
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 8 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.TOLGEE_MACHINE_PAT }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/release_package.zip
asset_path: ./dist-zip/dist.zip
asset_name: Tolgee-chrome-${{ steps.version.outputs.VERSION }}.zip
asset_content_type: application/zip
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ lerna-debug.log*
node_modules
dist
dist-ssr
dist-zip
*.local

# Editor directories and files
Expand Down
58 changes: 55 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"prettier": "3.1.1",
"semantic-release": "^17.4.7",
"typescript": "^5.2.2",
"vite": "^3.2.7"
"vite": "^3.2.7",
"vite-plugin-zip-pack": "^1.0.7"
},
"release": {
"plugins": [
Expand Down
1 change: 0 additions & 1 deletion public/vite.svg

This file was deleted.

5 changes: 3 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';

import { crx } from '@crxjs/vite-plugin';
import zipPack from 'vite-plugin-zip-pack';

import manifest from './manifest.json';

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), crx({ manifest: manifest as any })],
plugins: [react(), crx({ manifest: manifest as any }), zipPack()],
});

0 comments on commit 1245b82

Please sign in to comment.