Skip to content

Commit

Permalink
Remove chrome v3 manifest, as it not allows loading .wasm anyways; up…
Browse files Browse the repository at this point in the history
…date description
  • Loading branch information
nxmad committed Aug 12, 2021
1 parent 0a722dc commit ca116be
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 54 deletions.
12 changes: 2 additions & 10 deletions manifest/base.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
{
"manifest_version": 2,

"name": "Liberton",
"description": "Liberton browser extension gives you ability to interact with FreeTON blockchain effortlessly and safe.",

"description": "Liberton is free and safe non-custodial Free TON wallet.",
"author": "Alex Balatsky",
"version": "1.0.1",

"version": "1.1.0",
"icons": {
"16": "favicon/favicon-16x16.png",
"32": "favicon/favicon-32x32.png",
"128": "favicon/favicon-128.png"
},

"background": {
"page": "index.html",
"persistent": false
},
"browser_action": {
"default_title": "Liberton",
"default_icon": "favicon/favicon-32x32.png"
Expand Down
27 changes: 0 additions & 27 deletions manifest/chrome-v3.json

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "liberton",
"version": "1.1.0",
"description": "Liberton is free and safe non-custodial Free TON wallet.",
"scripts": {
"serve": "vite preview",
"build": "vite build",
"build:chrome": "BUNDLE_TARGET=chrome vite build",
"lint": "eslint src/**/*.{js,vue}",
"lint:fix": "eslint --fix src/**/*.{js,vue}",
"dev": "vite"
Expand Down
21 changes: 5 additions & 16 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,6 @@ import vue from '@vitejs/plugin-vue'
import copy from 'rollup-plugin-copy'
import { base64 } from 'rollup-plugin-base64'

const target = process.env.BUNDLE_TARGET || 'default'

const manifestCopy = (t) => {
const sourceFile = {
default: 'base.json',
chrome: 'base.json', // TODO: v3 WASM support
}[t]

return {
dest: 'public',
rename: 'manifest.json',
src: `manifest/${sourceFile}`,
}
}

export default defineConfig({
build: {
// target: 'es6',
Expand All @@ -42,7 +27,11 @@ export default defineConfig({
src: 'node_modules/@tonclient/lib-web/tonclient.wasm',
},

manifestCopy(target),
{
dest: 'public',
rename: 'manifest.json',
src: `manifest/base.json`,
},
],
hook: 'buildStart',
}),
Expand Down

0 comments on commit ca116be

Please sign in to comment.