Skip to content
This repository was archived by the owner on Mar 11, 2024. It is now read-only.

alephium/desktop-wallet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Dec 23, 2023
91f0358 · Dec 23, 2023
Jul 19, 2023
Apr 26, 2023
Sep 24, 2021
Oct 24, 2023
Dec 18, 2023
Jul 10, 2023
Dec 18, 2023
Apr 26, 2023
Apr 26, 2023
Apr 19, 2023
Mar 29, 2023
Dec 1, 2021
Nov 9, 2022
Dec 1, 2021
Oct 7, 2020
Dec 1, 2021
Nov 27, 2023
Jul 10, 2023
Sep 14, 2021
Dec 7, 2022
Apr 18, 2023
Dec 23, 2023
Dec 23, 2023
Oct 4, 2021
Jan 3, 2023
Apr 18, 2023

Repository files navigation

⚠️ Deprecation warning: This repository has been integrated into the Alephium frontend monorepo and is no longer maintained.

Alephium desktop wallet

The official Alephium desktop wallet.

Wallet preview

Development

Install depedencies with:

npm install

To launch it as an electron app, run:

npm run start:electron

Test

npm test

Packaging

The command below will detect your OS and build the corresponding package:

npm run electron-pack

To build for ARM64 Linux, run:

npm run electron-pack-linux:arm64

Release

To release a new version:

  1. Checkout the master branch:

    git checkout master
  2. Create a commit that updates the package version in package.json and package-lock.json and a tag with:

    npm version patch # if you want to bump the patch version
    npm version minor # if you want to bump the minor version
    npm version major # if you want to bump the major version
    npm version prepatch --preid=rc # if you want to create a release candidate and bump the patch version
    npm version preminor --preid=rc # if you want to create a release candidate and bump the minor version
    npm version premajor --preid=rc # if you want to create a release candidate and bump the major version
  3. Push the new commit and new tag to GitHub to trigger the release workflow that will build the downloadable binaries:

    git push
    git push [remote] <tag>

Adding new translation

  1. Copy locales/fr-FR/translation.json into locales/[xx-YY]/translation.json and add your translations.

  2. Import new translation file and add it to the resources in src/i18n.ts

    import en from '../locales/en-US/translation.json'
    import fr from '../locales/fr-FR/translation.json'
    
    i18next.use(initReactI18next).init({
      resources: {
        'en-US': { translation: en },
        'fr-FR': { translation: fr }
      }
    })
  3. Add new language option in src/utils/settings.ts

    const languageOptions = [
      { label: 'English', value: 'en-US' },
      { label: 'Français', value: 'fr-FR' }
    ]
  4. Import dayjs translation file in src/storage/settings/settingsSlice.ts

    import 'dayjs/locale/fr'