Skip to content

Commit

Permalink
Gnome 45 Support (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
meronz authored Oct 1, 2023
1 parent 7f3a5e8 commit 6fffcdc
Show file tree
Hide file tree
Showing 13 changed files with 479 additions and 596 deletions.
32 changes: 26 additions & 6 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,43 @@
import { defineConfig } from 'rollup';
import copy from 'rollup-plugin-copy'

// Let Rollup know that these libraries are known and it should not complain about them,
const externalImports = [
'gi://St',
'gi://GLib',
'gi://Gio',
'gi://Gtk',
'gi://GObject',
'gi://Clutter',
'resource:///org/gnome/shell/ui/main.js',
'resource:///org/gnome/shell/ui/panelMenu.js',
'resource:///org/gnome/shell/ui/popupMenu.js',
'resource:///org/gnome/shell/ui/modalDialog.js',
'gi://Meta',
'gi://Shell',
'gi://Adw',
'resource:///org/gnome/shell/extensions/extension.js',
'resource:///org/gnome/shell/misc/config.js',
'resource:///org/gnome/Shell/Extensions/js/extensions/prefs.js'
]

export default defineConfig([
{
input: "build/app.js",
output: {
file: "dist/extension.js",
format: "cjs",
esModule: false,
esModule: true,
},
plugins: [
stripExports(),
]
],
external: externalImports
},
{
input: "build/prefs_builder.js",
output: {
file: "dist/prefs.js",
format: "cjs",
esModule: false,
esModule: true,
},
plugins: [
stripExports(),
Expand All @@ -33,7 +52,8 @@ export default defineConfig([
{ src: 'src/schemas/org.gnome.shell.extensions.gsnap.gschema.xml', dest: 'dist/schemas' },
]
})
]
],
external: externalImports
}
]);

Expand Down
Loading

0 comments on commit 6fffcdc

Please sign in to comment.