Skip to content

Commit 77bf2b1

Browse files
authored
Merge pull request oxen-io#2491 from oxen-io/clearnet
Session 1.10.1
2 parents 7e60141 + b008e9d commit 77bf2b1

File tree

209 files changed

+3514
-2747
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

209 files changed

+3514
-2747
lines changed

.github/workflows/build-binaries.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
run: yarn install --frozen-lockfile --network-timeout 600000 --force
6262

6363
- name: Generate and concat files
64-
run: yarn generate && yarn transpile
64+
run: yarn build-everything
6565

6666
- name: Lint Files
6767
# no need to lint files on all platforms. Just do it once on the quicker one

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
run: yarn install --frozen-lockfile --network-timeout 600000 --force
5959

6060
- name: Generate and concat files
61-
run: yarn generate && yarn transpile
61+
run: yarn build-everything
6262

6363
- name: Lint Files
6464
# no need to lint files on all platforms. Just do it once on the quicker one

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
run: yarn install --frozen-lockfile --network-timeout 600000 --force
5959

6060
- name: Generate and concat files
61-
run: yarn generate && yarn transpile
61+
run: yarn build-everything
6262

6363
- name: Lint Files
6464
# no need to lint files on all platforms. Just do it once on the quicker one

BUILDING.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ nvm install # install the current node version used in this project
6666
nvm use # use the current node version used in this project
6767
npm install -g yarn # install yarn globally for this node version
6868
yarn install --frozen-lockfile # install all dependecies of this project
69-
yarn grunt # transpile and assemble files
69+
yarn build-everything # transpile and assemble files
7070
yarn start-prod # start the app on production mode (currently this is the only one supported)
7171
```
7272

@@ -116,7 +116,7 @@ nvm install # install the current node version used in this project
116116
nvm use # use the current node version used in this project
117117
npm install -g yarn # install yarn globally for this node version
118118
yarn install --frozen-lockfile # install all dependecies of this project
119-
yarn grunt # transpile and assemble files
119+
yarn build-everything # transpile and assemble files
120120
yarn start-prod # start the app on production mode (currently this is the only one supported)
121121
```
122122

@@ -125,20 +125,21 @@ yarn start-prod # start the app on production mode (currently this is the only o
125125
### Commands
126126

127127
The `rpm` package is required for running the build-release script. Run the appropriate command to install the `rpm` package:
128+
128129
```sh
129130
sudo pacman -S rpm # Arch
130131
```
132+
131133
```sh
132134
sudo apt install rpm # Ubuntu/Debian
133135
```
134136

135-
136137
Run the following to build the binaries for your specific system OS.
137138

138139
```
139140
npm install yarn --no-save
140141
yarn install --frozen-lockfile
141-
yarn generate
142+
yarn build-everything
142143
yarn build-release
143144
```
144145

CONTRIBUTING.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,9 @@ git clone https://github.com/oxen-io/session-desktop.git
6060
cd session-desktop
6161
npm install --global yarn # (only if you don’t already have `yarn`)
6262
yarn install --frozen-lockfile # Install and build dependencies (this will take a while)
63-
yarn grunt # Generate final JS and CSS assets
64-
yarn icon-gen # Generate full set of icons for Electron
63+
yarn build-everything
6564
yarn test # A good idea to make sure tests run first
66-
yarn start # Start Session!
65+
yarn start-prod # Start Session!
6766
```
6867

6968
You'll need to restart the application regularly to see your changes, as there
@@ -72,14 +71,10 @@ is no automatic restart mechanism. Alternatively, keep the developer tools open
7271
<kbd>Cmd</kbd> + <kbd>R</kbd> (macOS) or <kbd>Ctrl</kbd> + <kbd>R</kbd>
7372
(Windows & Linux).
7473

75-
Also, note that the assets loaded by the application are not necessarily the same files
76-
you’re touching. You may not see your changes until you run `yarn grunt` on the
77-
command-line like you did during setup. You can make it easier on yourself by generating
78-
the latest built assets when you change a file. Run this in its own terminal instance
79-
while you make changes:
80-
8174
```
82-
yarn grunt dev # runs until you stop it, re-generating built assets on file changes
75+
yarn build-everything:watch # runs until you stop it, re-generating built assets on file changes
76+
# Once this command is waiting for changes, you will need to run in another terminal `yarn parcel-util-worker` to fix the "exports undefined" error on start.
77+
# If you do change the sass while this command is running, it won't pick it up. You need to either run `yarn sass` or have `yarn sass:watch` running in a separate terminal.
8378
```
8479

8580
## Multiple instances
@@ -93,8 +88,6 @@ directory from `%appData%/Session` to `%appData%/Session-{environment}-{instance
9388
There are a few scripts which you can use:
9489

9590
```
96-
yarn start - Start development
97-
MULTI=1 yarn start - Start second instance of development
9891
yarn start-prod - Start production but in development mode
9992
MULTI=1 yarn start-prod - Start another instance of production
10093
```
@@ -103,7 +96,7 @@ For more than 2 clients, you may run the above command with `NODE_APP_INSTANCE`
10396
For example, running:
10497

10598
```
106-
NODE_APP_INSTANCE=alice yarn start
99+
NODE_APP_INSTANCE=alice yarn start-prod
107100
```
108101

109102
Will run the development environment with the `alice` instance and thus create a seperate storage profile.
@@ -188,6 +181,6 @@ see how they did things.
188181
You can build a production binary by running the following:
189182

190183
```
191-
yarn generate
184+
yarn build-everything
192185
yarn build-release
193186
```

Gruntfile.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@
33
module.exports = grunt => {
44
grunt.initConfig({
55
pkg: grunt.file.readJSON('package.json'),
6-
exec: {
7-
transpile: {
8-
cmd: 'yarn transpile',
9-
},
10-
'build-protobuf': {
11-
cmd: 'yarn build-protobuf',
12-
},
13-
},
146
gitinfo: {}, // to be populated by grunt gitinfo
157
});
168

@@ -45,5 +37,5 @@ module.exports = grunt => {
4537
});
4638

4739
grunt.registerTask('date', ['gitinfo']);
48-
grunt.registerTask('default', ['exec:build-protobuf', 'exec:transpile', 'date', 'getCommitHash']);
40+
grunt.registerTask('default', ['date', 'getCommitHash']);
4941
};

_locales/ar/messages.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,6 @@
384384
"trustThisContactDialogDescription": "هل انت متأكد من تنزيل الوسيط المرسل من طرف $name$؟",
385385
"pinConversation": "ثَبِت المحادثة",
386386
"unpinConversation": "ألغِي تثبيت المحادثة",
387-
"pinConversationLimitTitle": "حدود المحادثات المثبتة",
388-
"pinConversationLimitToastDescription": "يمكنك تثبيت $number$ محادثات فقط",
389387
"showUserDetails": "اظهر تفاصيل المستخدم",
390388
"sendRecoveryPhraseTitle": "أرسل جملة الاسترجاع",
391389
"sendRecoveryPhraseMessage": "انت تحاول ارسال جملة الاسترجاع التي تسمح بالوصول للحساب. متاكد من ارسالها؟",

_locales/bg/messages.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,6 @@
384384
"trustThisContactDialogDescription": "Are you sure you want to download media sent by $name$?",
385385
"pinConversation": "Pin Conversation",
386386
"unpinConversation": "Unpin Conversation",
387-
"pinConversationLimitTitle": "Pinned conversations limit",
388-
"pinConversationLimitToastDescription": "You can only pin $number$ conversations",
389387
"showUserDetails": "Show User Details",
390388
"sendRecoveryPhraseTitle": "Sending Recovery Phrase",
391389
"sendRecoveryPhraseMessage": "You are attempting to send your recovery phrase which can be used to access your account. Are you sure you want to send this message?",

_locales/ca/messages.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,6 @@
384384
"trustThisContactDialogDescription": "Are you sure you want to download media sent by $name$?",
385385
"pinConversation": "Pin Conversation",
386386
"unpinConversation": "Unpin Conversation",
387-
"pinConversationLimitTitle": "Pinned conversations limit",
388-
"pinConversationLimitToastDescription": "You can only pin $number$ conversations",
389387
"showUserDetails": "Show User Details",
390388
"sendRecoveryPhraseTitle": "Sending Recovery Phrase",
391389
"sendRecoveryPhraseMessage": "You are attempting to send your recovery phrase which can be used to access your account. Are you sure you want to send this message?",

_locales/cs/messages.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,6 @@
384384
"trustThisContactDialogDescription": "Určitě chceš stáhnout obsah odeslán uživatelem $name$?",
385385
"pinConversation": "Připnout konverzaci",
386386
"unpinConversation": "Odepnout konverzaci",
387-
"pinConversationLimitTitle": "Limit připnutých konverzací",
388-
"pinConversationLimitToastDescription": "Můžete připnout jen $number$ konverzací",
389387
"showUserDetails": "Zobrazit podrobnosti uživatele",
390388
"sendRecoveryPhraseTitle": "Odesílání fráze pro obnovení",
391389
"sendRecoveryPhraseMessage": "Pokoušíš se odeslat svou frázu pro obnovení, díky které se lze přihlásit do tvého účtu. Opravdu chceš tuto zprávu odeslat?",

0 commit comments

Comments
 (0)