Skip to content

Commit

Permalink
feat: prepare release process for canary iota 2.0 testnet version (#8522
Browse files Browse the repository at this point in the history
)

* feat: prepare release process for canary iota 2.0 testnet version

* fix: error

* feat: uncomment autoupdate feature

* feat: update protocol

* 3.0.0

---------

Co-authored-by: cpl121 <cpeon@boxfish.studio>
Co-authored-by: cpl121 <100352899+cpl121@users.noreply.github.com>
Co-authored-by: Begoña Alvarez <balvarez@boxfish.studio>
  • Loading branch information
4 people authored May 13, 2024
1 parent 25800c5 commit 27bac71
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-and-release-desktop.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Build and Release Desktop

env:
NETWORK: Shimmer
NETWORK_CODE: shimmer
NETWORK: Canary
NETWORK_CODE: canary

on:
push:
tags:
- desktop-shimmer-*
- desktop-canary-*
workflow_dispatch:
inputs:
debugElectronBuilder:
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
- id: set_outputs
name: Set outputs for version, release name, and stage
run: |
VERSION=${GITHUB_REF#refs/*/desktop-shimmer-}
VERSION=${GITHUB_REF#refs/*/desktop-canary-}
RELEASE_NAME=$(echo $VERSION | perl -0777 -pe 's/^([0-9]\d*\.[0-9]\d*\.[0-9]\d*)(?:-([a-z]*)-(\d*))?$/$1 \u$2 $3/')
STAGE=$(echo $VERSION | perl -0777 -pe 's/^([0-9]\d*\.[0-9]\d*\.[0-9]\d*)(?:-([a-z]*)-([0-9]\d*(\.[0-9]\d*)*))?$/$2/')
Expand Down Expand Up @@ -198,7 +198,7 @@ jobs:
name: firefly-desktop-${{ matrix.os }}
path: |
packages/desktop/out/firefly-*
packages/desktop/out/shimmer*
packages/desktop/out/canary*
release:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -315,7 +315,7 @@ jobs:
AWS_DEFAULT_REGION: eu-central-1

- name: Invalidate CloudFront cache for auto-update files
run: aws cloudfront create-invalidation --distribution-id E32G4HRED4PO65 --paths "/shimmer*"
run: aws cloudfront create-invalidation --distribution-id E32G4HRED4PO65 --paths "/canary*"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-desktop.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Build Desktop (v2)

env:
NETWORK_CODE: shimmer
NETWORK_CODE: canary

on:
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<a href=""><img src="header.png"></a>
</h1>

<h2 align="center">Firefly Shimmer</h2>
<h2 align="center">Firefly Canary</h2>

<p align="center">
<a href="https://discord.iota.org/" style="text-decoration:none;"><img src="https://img.shields.io/badge/Discord-9cf.svg?logo=discord" alt="Discord"></a>
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "desktop",
"productName": "Firefly Canary",
"version": "4.0.0-beta-1",
"version": "3.0.0-beta-1",
"description": "Official wallet application of IOTA Canary",
"main": "public/build/main.js",
"repository": "git@github.com:iotaledger/firefly.git",
Expand Down
18 changes: 9 additions & 9 deletions packages/desktop/product.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable */
const PRODUCT_NAME = 'Firefly Shimmer'
const NETWORK = 'shimmer'
const PRODUCT_NAME = 'Firefly Canary'
const NETWORK = 'canary'

const STAGE = process.env.STAGE || 'alpha'
const APP_ID = getAppId()
Expand Down Expand Up @@ -47,15 +47,15 @@ function getAppName(isPackaged = true) {
* If network = 'shimmer' -> 'firefly'
*/
function getAppProtocol() {
return STAGE === 'prod' ? 'firefly' : `firefly-${STAGE.toLowerCase()}`
return STAGE === 'prod' ? 'canary' : `canary-${STAGE.toLowerCase()}`
}

/**
* If stage = 'prod' -> 'org.iota.firefly-shimmer'
* If stage = 'alpha' -> 'org.iota.firefly-shimmer.alpha'
* If stage = 'prod' -> 'org.iota.firefly-canary'
* If stage = 'alpha' -> 'org.iota.firefly-canary.alpha'
*/
function getAppId() {
const defaultAppId = 'org.iota.firefly-shimmer'
const defaultAppId = 'org.iota.firefly-canary'
if (STAGE === 'prod') {
return defaultAppId
}
Expand All @@ -65,11 +65,11 @@ function getAppId() {
function getChannelName() {
switch (STAGE) {
case 'alpha':
return 'shimmer-alpha'
return 'canary-alpha'
case 'beta':
return 'shimmer-beta'
return 'canary-beta'
default:
return 'shimmer'
return 'canary'
}
}

Expand Down

0 comments on commit 27bac71

Please sign in to comment.