Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scripts: simplex-servers-update menu to update only server binaries etc. #1445

Merged
merged 48 commits into from
Feb 15, 2025
Merged
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
84a5ac3
scripts/simplex-servers-update: refactor
shumvgolove Jan 30, 2025
089dcc2
simplex-servers-update: don't check empty variable
shumvgolove Jan 31, 2025
b1778ec
simplex-servers-update: minor decoration change
shumvgolove Jan 31, 2025
07ac7fc
simplex-servers-update: add new line when reexecuting script
shumvgolove Jan 31, 2025
19e734f
simplex-servers-update: refactor menus
shumvgolove Jan 31, 2025
ff005f3
simplex-servers-update: fix re-executing
shumvgolove Jan 31, 2025
191696f
simplex-servers-update: fix menus
shumvgolove Jan 31, 2025
9bb317c
simplex-servers-update: do not rerended menu every time
shumvgolove Jan 31, 2025
4a51ad3
simplex-servers-update: update menus logic
shumvgolove Jan 31, 2025
04c505d
simplex-servers-update: ask permission to update only if versions differ
shumvgolove Jan 31, 2025
e3051b6
simplex-servers-update: skip empty variable
shumvgolove Jan 31, 2025
0af3db6
simplex-servers-update: include while loop
shumvgolove Jan 31, 2025
3d9e2e9
simplex-servers-update: update re-executing skip logic
shumvgolove Jan 31, 2025
30652d4
simplex-servers-update: ignore empty
shumvgolove Jan 31, 2025
91da5df
simplex-servers-update: s/while/if
shumvgolove Jan 31, 2025
99c02bc
simplex-servers-update: ignore empty variable
shumvgolove Jan 31, 2025
64d0ca8
simplex-servers-update: update skipping scripts
shumvgolove Jan 31, 2025
8cd1146
simplex-servers-update: minor fixes
shumvgolove Jan 31, 2025
79118fe
simplex-servers-update: add spaces
shumvgolove Jan 31, 2025
7ed782f
simplex-servers-update: safeguard files and add cleanup logic
shumvgolove Jan 31, 2025
6edba27
simplex-servers-update: update menus
shumvgolove Jan 31, 2025
83687f4
simplex-servers-update: fix binary check
shumvgolove Jan 31, 2025
f4bc021
simplex-servers-update: adjust erasing lines
shumvgolove Jan 31, 2025
aadc780
simplex-servers-update: simplify bin update logic
shumvgolove Jan 31, 2025
e36a000
simplex-servers-update: fix binary path
shumvgolove Jan 31, 2025
00d4893
simplex-servers-update: format errors
shumvgolove Jan 31, 2025
307175a
scripts/main/simplex-servers-update: initial refactor2
shumvgolove Feb 5, 2025
30b2ef2
simplex-servers-update: incr update
shumvgolove Feb 5, 2025
384739a
simplex-servers-update: initial dynamic menu
shumvgolove Feb 5, 2025
21626f0
simplex-servers-update: misc fixes
shumvgolove Feb 5, 2025
69968c0
simplex-servers-update: fix VER
shumvgolove Feb 7, 2025
4a4f474
simplex-servers-update: add VER check
shumvgolove Feb 7, 2025
4460904
simplex-servers-update: abort early if there's no options available
shumvgolove Feb 7, 2025
7b6b6f5
simplex-servers-update: add new helper function and update_misc
shumvgolove Feb 7, 2025
b21ed1f
simplex-servers-update: pass selection
shumvgolove Feb 7, 2025
a946d73
simplex-servers-update: non-interactive usage
shumvgolove Feb 7, 2025
20ede73
simplex-servers-update: add help menu
shumvgolove Feb 7, 2025
4da4b29
simplex-servers-update: misc fixes and new binary update logic
shumvgolove Feb 11, 2025
de020d2
simplex-servers-update: local path check
shumvgolove Feb 11, 2025
2ba3690
simplex-servers-update: fix change check
shumvgolove Feb 11, 2025
fed6311
simplex-servers-update: OLF -> OLD
shumvgolove Feb 11, 2025
02fe8f8
simplex-servers-update: always return code from functions
shumvgolove Feb 11, 2025
433b7a1
simplex-servers-update: new menu flow
shumvgolove Feb 13, 2025
391662e
simplex-servers-update: fixes
shumvgolove Feb 13, 2025
ab54629
simplex-servers-update: download function + fixes
shumvgolove Feb 14, 2025
1c79d79
simplex-servers-update: s/bins/binaries
shumvgolove Feb 14, 2025
c4a0d6a
simplex-servers-update: download message
shumvgolove Feb 14, 2025
d0f8d2a
simplex-servers-update: cleanup
shumvgolove Feb 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
simplex-servers-update: fix binary path
shumvgolove committed Jan 31, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit e36a000a779261aa114f35f31aaf138bec230cba
2 changes: 1 addition & 1 deletion scripts/main/simplex-servers-update
Original file line number Diff line number Diff line change
@@ -286,7 +286,7 @@ update_bins() {
printf -- "- Updating %s to %s..." "$service" "$remote_version"

curl --proto '=https' --tlsv1.2 -sSf -L "$bin" -o "$path_bin.new" && chmod +x "$path_bin.new"
if ! check_sanity "$path_tmp_systemd" 'file: ELF'; then
if ! check_sanity "$path_bin.new" 'file: ELF'; then
printf "\nSomething went wrong when downloading %s binary: either you don't have connection to Github or you're rate-limited.\n" "$service"
rm "$path_bin.new"
exit 1

Unchanged files with check annotations Beta

{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
{-# OPTIONS_GHC -fno-warn-ambiguous-fields #-}

Check warning on line 11 in src/Simplex/FileTransfer/Agent.hs

GitHub Actions / build-ubuntu-20.04-8.10.7

unrecognised warning flag: -fno-warn-ambiguous-fields

Check warning on line 11 in src/Simplex/FileTransfer/Agent.hs

GitHub Actions / build-ubuntu-20.04-8.10.7

unrecognised warning flag: -fno-warn-ambiguous-fields
module Simplex.FileTransfer.Agent
( startXFTPWorkers,
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-ambiguous-fields #-}

Check warning on line 14 in src/Simplex/FileTransfer/Description.hs

GitHub Actions / build-ubuntu-20.04-8.10.7

unrecognised warning flag: -fno-warn-ambiguous-fields

Check warning on line 14 in src/Simplex/FileTransfer/Description.hs

GitHub Actions / build-ubuntu-20.04-8.10.7

unrecognised warning flag: -fno-warn-ambiguous-fields
module Simplex.FileTransfer.Description
( FileDescription (..),
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeApplications #-}
{-# OPTIONS_GHC -fno-warn-ambiguous-fields #-}

Check warning on line 18 in src/Simplex/Messaging/Agent.hs

GitHub Actions / build-ubuntu-20.04-8.10.7

unrecognised warning flag: -fno-warn-ambiguous-fields

Check warning on line 18 in src/Simplex/Messaging/Agent.hs

GitHub Actions / build-ubuntu-20.04-8.10.7

unrecognised warning flag: -fno-warn-ambiguous-fields
-- |
-- Module : Simplex.Messaging.Agent
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
{-# OPTIONS_GHC -fno-warn-ambiguous-fields #-}

Check warning on line 10 in src/Simplex/Messaging/Agent/NtfSubSupervisor.hs

GitHub Actions / build-ubuntu-20.04-8.10.7

unrecognised warning flag: -fno-warn-ambiguous-fields

Check warning on line 10 in src/Simplex/Messaging/Agent/NtfSubSupervisor.hs

GitHub Actions / build-ubuntu-20.04-8.10.7

unrecognised warning flag: -fno-warn-ambiguous-fields
module Simplex.Messaging.Agent.NtfSubSupervisor
( runNtfSupervisor,
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -fno-warn-ambiguous-fields #-}

Check warning on line 25 in src/Simplex/Messaging/Agent/Store/AgentStore.hs

GitHub Actions / build-ubuntu-20.04-8.10.7

unrecognised warning flag: -fno-warn-ambiguous-fields

Check warning on line 25 in src/Simplex/Messaging/Agent/Store/AgentStore.hs

GitHub Actions / build-ubuntu-20.04-8.10.7

unrecognised warning flag: -fno-warn-ambiguous-fields
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Simplex.Messaging.Agent.Store.AgentStore
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TupleSections #-}
{-# OPTIONS_GHC -fno-warn-ambiguous-fields #-}

Check warning on line 8 in src/Simplex/RemoteControl/Client.hs

GitHub Actions / build-ubuntu-20.04-8.10.7

unrecognised warning flag: -fno-warn-ambiguous-fields

Check warning on line 8 in src/Simplex/RemoteControl/Client.hs

GitHub Actions / build-ubuntu-20.04-8.10.7

unrecognised warning flag: -fno-warn-ambiguous-fields
module Simplex.RemoteControl.Client
( RCHostClient (action),
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -fno-warn-ambiguous-fields #-}

Check warning on line 24 in src/Simplex/Messaging/Agent/Store/SQLite.hs

GitHub Actions / build-ubuntu-20.04-8.10.7

unrecognised warning flag: -fno-warn-ambiguous-fields

Check warning on line 24 in src/Simplex/Messaging/Agent/Store/SQLite.hs

GitHub Actions / build-ubuntu-20.04-8.10.7

unrecognised warning flag: -fno-warn-ambiguous-fields
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Simplex.Messaging.Agent.Store.SQLite
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
{-# OPTIONS_GHC -fno-warn-ambiguous-fields #-}

Check warning on line 11 in src/Simplex/FileTransfer/Client/Main.hs

GitHub Actions / build-ubuntu-20.04-8.10.7

unrecognised warning flag: -fno-warn-ambiguous-fields

Check warning on line 11 in src/Simplex/FileTransfer/Client/Main.hs

GitHub Actions / build-ubuntu-20.04-8.10.7

unrecognised warning flag: -fno-warn-ambiguous-fields
module Simplex.FileTransfer.Client.Main
( SendOptions (..),
{-# LANGUAGE OverloadedLists #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# OPTIONS_GHC -fno-warn-ambiguous-fields #-}

Check warning on line 8 in src/Simplex/Messaging/Notifications/Server/Main.hs

GitHub Actions / build-ubuntu-20.04-8.10.7

unrecognised warning flag: -fno-warn-ambiguous-fields

Check warning on line 8 in src/Simplex/Messaging/Notifications/Server/Main.hs

GitHub Actions / build-ubuntu-20.04-8.10.7

unrecognised warning flag: -fno-warn-ambiguous-fields
module Simplex.Messaging.Notifications.Server.Main where
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# OPTIONS_GHC -fno-warn-ambiguous-fields #-}

Check warning on line 8 in src/Simplex/Messaging/Notifications/Server/StoreLog.hs

GitHub Actions / build-ubuntu-20.04-8.10.7

unrecognised warning flag: -fno-warn-ambiguous-fields

Check warning on line 8 in src/Simplex/Messaging/Notifications/Server/StoreLog.hs

GitHub Actions / build-ubuntu-20.04-8.10.7

unrecognised warning flag: -fno-warn-ambiguous-fields
module Simplex.Messaging.Notifications.Server.StoreLog
( StoreLog,