desech-studio

Desech Studio

Gpg key

cd ~/Downloads
gpg --import Desech.public.asc
gpg --import Desech.secret.asc
gpg --list-keys --with-colons

Install Repo

sudo apt install rpm alien libarchive-tools reprepro
cd ~/dev/desech-studio
npm install
cd app
npm install
cd ..
npm run build-all-dev
./app/node_modules/.bin/electron ./app/index.js

Icons

- use figma to export the image files needed
sudo apt install icnsutils icoutils
cd ~/dev/desech-studio
png2icns build/resource/icon.icns build/resource/icon.png
icotool -c -o build/resource/icon.ico build/resource/icon.png

Build Studio Utilities

cd ~/dev/desech-studio/dist
# unpack asar
npx asar extract ./linux-unpacked/resources/app.asar ./linux-unpacked/resources/app
# unpack deb
ar x desech-studio_1.0.0_amd64.deb
# run unpackaged app
./linux-unpacked/desech-studio
# convert rpm to deb
sudo alien desech-studio-1.0.0.x86_64.rpm
# install deb file
sudo dpkg -i ./desech-studio_1.0.0_amd64.deb
# uninstall deb/app
sudo apt purge -y desech-studio

Linux Repositories

Manjaro VM

sudo pacman -S --needed base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
yay repoctl
  1
  n
ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub
- check the server-git docs to add the key to the git user ~/.ssh/authorized_keys file
mkdir dev
cd dev
git clone ssh://git@git.desech.com:5522/~/desech-download.git
git config --global user.email "catalin.luntraru@desech.com"
git config --global user.name "catalin"
repoctl conf new /home/manjaro/dev/desech-download/pacman/desech-studio.db.tar.zst

Fedora VM

ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub
- check the server-git docs to add the key to the git user ~/.ssh/authorized_keys file
mkdir dev
cd dev
git clone ssh://git@git.desech.com:5522/~/desech-download.git
git config --global user.email "catalin.luntraru@desech.com"
git config --global user.name "catalin"

Html elements to watch out for

Build Studio and update downloads repository

sudo apt update && sudo apt upgrade && sudo apt autoremove
cd ~/dev/desech-studio
npm run build-all-prod
npm run build-linux-x86
- make sure to copy the gpg passphrase now
reprepro -b ~/dev/desech-download/apt includedeb apt ./dist/desech-studio-2.0.1-amd64.deb
reprepro -b ~/dev/desech-download/apt list apt
cp ./dist/desech-studio-2.0.1-x86_64.rpm ~/dev/desech-download/dnf
cp ./dist/desech-studio-2.0.1-x64.pacman ~/dev/desech-download/pacman

cd ../desech-download
git add -A
git commit -am "ubuntu"
git push

Manjaro

cd ~/dev/desech-download
git pull

- open a new tab (CTRL+SHIFT+T)
- next time try to sudo repoctl
sudo -s
repoctl add ./pacman/desech-studio-2.0.1-x64.pacman
  - File Explorer > go to `~/dev/desech-download/pacman`
  - when the lock file disappears cancel the process
  - remove the previous pacman file
chown -R manjaro:manjaro *

- back to the other tab
git add -A
git commit -am "manjaro"
git push

Fedora

sudo dnf update --refresh && sudo dnf upgrade --refresh && sudo dnf autoremove
- remove the previous rpm file
cd ~/dev/desech-download
git pull
sudo createrepo -v ./dnf
sudo chown -R fedora:fedora *
git add -A
git commit -am "fedora"
git push

Windows

- check window updates
- fetch the latest updates from git
cd Documents/dev/desech-studio
npm i
cd app
npm i
cd ..
npm run build-all-prod
npm run build-win
- copy the windows files to the desech-download repo and push/pull

Mac

- fetch the latest updates from git
cd Documents/dev/desech-studio
npm i
cd app
npm i
cd ..
npm run build-all-prod
npm run build-mac
- copy the mac files to the desech-download repo and push/pull

Web server

su sftp
cd /var/sftp/download.desech.com
git pull

Check updates

Ubuntu

sudo apt update && sudo apt upgrade && sudo apt autoremove

Manjaro

Fedora

sudo dnf update --refresh && sudo dnf upgrade

Windows/Mac

Website update