Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
chore: update release related files
Browse files Browse the repository at this point in the history
  • Loading branch information
oae committed Apr 9, 2020
1 parent 52f8b81 commit cda410d
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -282,4 +282,4 @@ fabric.properties

# End of https://www.gitignore.io/api/node,linux,webstorm,sublimetext,visualstudiocode

# ts-for-gjs output
# ts-for-gjs output
58 changes: 50 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,57 @@
# 🚀 Welcome to your new awesome project!
# Extensions Sync

This project has been created using **webpack scaffold**, you can now run
Syncs gnome shell extensions and their configurations across all gnome installations

```
npm run build
```
![SS](https://i.imgur.com/XfXOQCB.png)

or
## Installation

```
### From [Git](https://github.com/oae/gnome-shell-extensions-sync)

```bash
git clone https://github.com/oae/gnome-shell-extensions-sync.git
cd ./gnome-shell-extensions-sync
yarn build
ln -s "$PWD/dist" "$HOME/.local/share/gnome-shell/extensions/[email protected]"
```

to bundle your application
### From [Ego](extensions.gnome.org)

- You can install it from link below
https://extensions.gnome.org/extension/1486/extensions-sync/

## Usage

## For Github

1. Create a new gist from [here](https://gist.github.com/) I suggest you make it secret.
2. Create a new token from [here](https://github.com/settings/tokens/new). Only gist permission is needed since we edit the gists.
3. Open extension settings, select the `Github` provider and fill gist id from first step and user token from second step.

## For Gitlab

1. Create a new snippet from [here](https://gitlab.com/snippets/new) I suggest you make it private.
2. Create a new token from [here](https://gitlab.com/profile/personal_access_tokens). Only api scope is needed.
3. Open extension settings, select the `Gitlab` provider and fill snippet id from first step and user token from second step.

## Development

- This extension is written in Typescript and uses webpack to compile it into javascript.
- Most dependencies have auto completion support thanks to [this amazing project](https://github.com/sammydre/ts-for-gjs) by [@sammydre](https://github.com/sammydre)
- To start development, you need nodejs installed on your system;

- Clone the project

```sh
git clone https://github.com/oae/gnome-shell-extensions-sync.git
cd ./gnome-shell-extensions-sync
```

- Install dependencies and build it

```sh
yarn install
yarn build
```

- During development you can use `yarn watch` command to keep generated code up-to-date.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "extensions-sync-x",
"name": "extensions-sync",
"version": "1.0.0",
"author": "Alperen Elhan <[email protected]>",
"license": "MIT",
Expand All @@ -13,6 +13,7 @@
"build:extension": "yarn run build:schema",
"build:schema": "yarn run clean:schema && glib-compile-schemas ./resources/schemas --targetdir=./dist/schemas/",
"clean:schema": "rm -rf ./dist/schemas/*.compiled",
"build:package": "rm -rf './dist/[email protected]' && cd ./dist && zip -qr '[email protected]' .",
"watch": "yarn run build && yarn run webpack --watch",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint --ext .ts src/"
Expand Down
7 changes: 4 additions & 3 deletions resources/metadata.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "extensions-sync-x",
"description": "extensions-sync-x",
"uuid": "extensions-sync-x@elhan.io",
"name": "Extensions Sync",
"description": "Sync all extensions and their configurations across all gnome instances",
"uuid": "[email protected]",
"version": 5,
"settings-schema": "org.gnome.shell.extensions.extensions-sync",
"url": "https://github.com/oae/gnome-shell-extensions-sync",
"shell-version": ["3.36"]
}
1 change: 1 addition & 0 deletions src/prefs/prefs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class Preferences {
if (null !== settingsBox) {
this.widget.pack_start(settingsBox, true, true, 0);
}
this.widget.get_parent_window()?.set_title(this.extension.metadata.name);

this.initValues();
this.onProviderChange();
Expand Down

0 comments on commit cda410d

Please sign in to comment.