Skip to content

Commit 95f8739

Browse files
feat: update CI (#77)
* feat: update ci * feat: pass --publish never to electron builder * fix: update version --------- Co-authored-by: Begoña Álvarez de la Cruz <[email protected]>
1 parent aa71047 commit 95f8739

File tree

5 files changed

+50
-74
lines changed

5 files changed

+50
-74
lines changed

.github/workflows/build-desktop.yml

Lines changed: 31 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ jobs:
153153
# strip -S index.node
154154
# objcopy --add-gnu-debuglink=index.node.dbg index.node
155155
# sentry-cli difutil check index.node.dbg
156-
# sentry-cli upload-dif -o "iota-foundation-h4" -p "firefly-backend" --include-sources index.node.dbg
157-
# sentry-cli upload-dif -o "iota-foundation-h4" -p "firefly-desktop" --include-sources index.node.dbg
156+
# sentry-cli upload-dif -o "iota-foundation-h4" -p "iota-legacy-migration-tool-backend" --include-sources index.node.dbg
157+
# sentry-cli upload-dif -o "iota-foundation-h4" -p "iota-legacy-migration-tool-desktop" --include-sources index.node.dbg
158158
# working-directory: packages/backend/bindings/node
159159
# env:
160160
# SENTRY_LOG_LEVEL: 'debug'
@@ -164,8 +164,8 @@ jobs:
164164
- name: Upload backend debug info to Sentry (Windows)
165165
run: |
166166
sentry-cli difutil check node_neon.pdb
167-
sentry-cli upload-dif -o "iota-foundation-h4" -p "firefly-backend" --include-sources node_neon.pdb
168-
sentry-cli upload-dif -o "iota-foundation-h4" -p "firefly-desktop" --include-sources node_neon.pdb
167+
sentry-cli upload-dif -o "iota-foundation-h4" -p "iota-legacy-migration-tool-backend" --include-sources node_neon.pdb
168+
sentry-cli upload-dif -o "iota-foundation-h4" -p "iota-legacy-migration-tool-desktop" --include-sources node_neon.pdb
169169
working-directory: packages/backend/bindings/node/native/target/x86_64-pc-windows-msvc/release
170170
env:
171171
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
@@ -202,8 +202,8 @@ jobs:
202202
env:
203203
CSC_LINK: ${{ secrets.MAC_CERT_BASE64 }}
204204
CSC_KEY_PASSWORD: ${{ secrets.MAC_CERT_PASSWORD }}
205-
FIREFLY_APPLE_ID: ${{ secrets.APPLE_ID }}
206-
FIREFLY_APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
205+
LEGACY_MIGRATION_TOOL_APPLE_ID: ${{ secrets.APPLE_ID }}
206+
LEGACY_MIGRATION_TOOL_APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
207207
working-directory: packages/desktop
208208
if: matrix.os == 'macos-13'
209209

@@ -230,33 +230,33 @@ jobs:
230230
if: matrix.os == 'ubuntu-20.04'
231231

232232
- name: Sign AppImage (Linux)
233-
run: echo $GPG_PASSPHRASE | gpg --pinentry-mode loopback --batch --passphrase-fd 0 --armor --detach-sign --default-key [email protected] firefly-desktop*.AppImage
233+
run: echo $GPG_PASSPHRASE | gpg --pinentry-mode loopback --batch --passphrase-fd 0 --armor --detach-sign --default-key [email protected] iota-legacy-migration-tool-desktop*.AppImage
234234
working-directory: packages/desktop/out
235235
env:
236236
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
237237
if: matrix.os == 'ubuntu-20.04'
238238

239239
- name: Compute checksums (Linux)
240-
run: for i in `ls | grep 'firefly-desktop*'` ; do sha256sum $i | awk {'print $1'} > $i.sha256 ; done
240+
run: for i in `ls | grep 'iota-legacy-migration-tool-desktop*'` ; do sha256sum $i | awk {'print $1'} > $i.sha256 ; done
241241
working-directory: packages/desktop/out
242242
if: matrix.os == 'ubuntu-20.04'
243243

244244
- name: Compute checksums (macOS)
245-
run: for i in `ls | grep 'firefly-desktop*'` ; do shasum -a 256 $i | awk {'print $1'} > $i.sha256 ; done
245+
run: for i in `ls | grep 'iota-legacy-migration-tool-desktop*'` ; do shasum -a 256 $i | awk {'print $1'} > $i.sha256 ; done
246246
working-directory: packages/desktop/out
247247
if: matrix.os == 'macos-13'
248248

249249
- name: Compute checksums (Windows)
250-
run: Get-ChildItem "." -Filter firefly-desktop* | Foreach-Object { $(Get-FileHash -Path $_.FullName -Algorithm SHA256).Hash | Set-Content ($_.FullName + '.sha256') }
250+
run: Get-ChildItem "." -Filter iota-legacy-migration-tool-desktop* | Foreach-Object { $(Get-FileHash -Path $_.FullName -Algorithm SHA256).Hash | Set-Content ($_.FullName + '.sha256') }
251251
working-directory: packages/desktop/out
252252
if: matrix.os == 'windows-latest'
253253

254254
- name: Upload artifacts
255255
uses: actions/upload-artifact@v2
256256
with:
257-
name: firefly-desktop-${{ matrix.os }}
257+
name: iota-legacy-migration-tool-desktop-${{ matrix.os }}
258258
path: |
259-
packages/desktop/out/firefly-desktop*
259+
packages/desktop/out/iota-legacy-migration-tool-desktop*
260260
packages/desktop/out/latest*
261261
262262
release:
@@ -277,38 +277,38 @@ jobs:
277277
- name: Downloading artifacts
278278
uses: actions/download-artifact@v2
279279
with:
280-
name: firefly-desktop-windows-latest
280+
name: iota-legacy-migration-tool-desktop-windows-latest
281281
path: assets
282282

283283
- name: Downloading artifacts
284284
uses: actions/download-artifact@v2
285285
with:
286-
name: firefly-desktop-macos-13
286+
name: iota-legacy-migration-tool-desktop-macos-13
287287
path: assets
288288

289289
- name: Downloading artifacts
290290
uses: actions/download-artifact@v2
291291
with:
292-
name: firefly-desktop-ubuntu-20.04
292+
name: iota-legacy-migration-tool-desktop-ubuntu-20.04
293293
path: assets
294294

295295
- name: Preparing release body
296296
run: |
297297
sed -i 's/\r$//' ../../assets/*.sha256 && sed -i '/^$/d' ../../assets/*.sha256 && sed -i -e 's/\(.*\)/\L\1/' ../../assets/*.sha256
298-
WIN_SHA256=$(cat ../../assets/firefly-desktop-${{ env.VERSION }}.exe.sha256)
299-
LIN_SHA256=$(cat ../../assets/firefly-desktop-${{ env.VERSION }}.AppImage.sha256)
300-
MAC_SHA256=$(cat ../../assets/firefly-desktop-${{ env.VERSION }}.dmg.sha256)
298+
WIN_SHA256=$(cat ../../assets/iota-legacy-migration-tool-desktop-${{ env.VERSION }}.exe.sha256)
299+
LIN_SHA256=$(cat ../../assets/iota-legacy-migration-tool-desktop-${{ env.VERSION }}.AppImage.sha256)
300+
MAC_SHA256=$(cat ../../assets/iota-legacy-migration-tool-desktop-${{ env.VERSION }}.dmg.sha256)
301301
echo $WIN_SHA256 $LIN_SHA256 $MAC_SHA256
302302
touch CHANGELOG.md
303303
echo '### Changelog' >> CHANGELOG.md
304304
echo '------' >> CHANGELOG.md
305305
echo '### File Hashes' >> CHANGELOG.md
306-
echo '[How to verify the authenticity of your Firefly Desktop download](https://wiki.iota.org/chrysalis-docs/firefly/verify_download)' >> CHANGELOG.md
306+
echo '[How to verify the authenticity of your IOTA Legacy Migration Tool Desktop download](https://wiki.iota.org/chrysalis-docs/firefly/verify_download)' >> CHANGELOG.md
307307
echo '| File | Platform | SHA256 Hash |' >> CHANGELOG.md
308308
echo '| --- | --- | --- |' >> CHANGELOG.md
309-
echo '| firefly-desktop-${{ env.VERSION }}.exe | Windows |' $WIN_SHA256 '|' >> CHANGELOG.md
310-
echo '| firefly-desktop-${{ env.VERSION }}.AppImage | Linux |' $LIN_SHA256 '|' >> CHANGELOG.md
311-
echo '| firefly-desktop-${{ env.VERSION }}.dmg | MacOS | ' $MAC_SHA256 '|' >> CHANGELOG.md
309+
echo '| iota-legacy-migration-tool-desktop-${{ env.VERSION }}.exe | Windows |' $WIN_SHA256 '|' >> CHANGELOG.md
310+
echo '| iota-legacy-migration-tool-desktop-${{ env.VERSION }}.AppImage | Linux |' $LIN_SHA256 '|' >> CHANGELOG.md
311+
echo '| iota-legacy-migration-tool-desktop-${{ env.VERSION }}.dmg | MacOS | ' $MAC_SHA256 '|' >> CHANGELOG.md
312312
cat CHANGELOG.md
313313
working-directory: packages/desktop
314314

@@ -319,7 +319,7 @@ jobs:
319319
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
320320
with:
321321
tag_name: ${{ github.ref }}
322-
release_name: Firefly Desktop ${{ env.RELEASE_NAME }}
322+
release_name: IOTA Legacy Migration Tool ${{ env.RELEASE_NAME }}
323323
body_path: packages/desktop/CHANGELOG.md
324324
draft: true
325325
prerelease: ${{ env.STAGE != 'prod' }}
@@ -330,8 +330,8 @@ jobs:
330330
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
331331
with:
332332
upload_url: ${{ steps.create_release.outputs.upload_url }}
333-
asset_path: assets/firefly-desktop-${{ env.VERSION }}.dmg
334-
asset_name: firefly-desktop-${{ env.VERSION }}.dmg
333+
asset_path: assets/iota-legacy-migration-tool-desktop-${{ env.VERSION }}.dmg
334+
asset_name: iota-legacy-migration-tool-desktop-${{ env.VERSION }}.dmg
335335
asset_content_type: application/octet-stream
336336

337337
- name: Upload Windows binary asset
@@ -340,8 +340,8 @@ jobs:
340340
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
341341
with:
342342
upload_url: ${{ steps.create_release.outputs.upload_url }}
343-
asset_path: assets/firefly-desktop-${{ env.VERSION }}.exe
344-
asset_name: firefly-desktop-${{ env.VERSION }}.exe
343+
asset_path: assets/iota-legacy-migration-tool-desktop-${{ env.VERSION }}.exe
344+
asset_name: iota-legacy-migration-tool-desktop-${{ env.VERSION }}.exe
345345
asset_content_type: application/octet-stream
346346

347347
- name: Upload Linux binary asset
@@ -350,8 +350,8 @@ jobs:
350350
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
351351
with:
352352
upload_url: ${{ steps.create_release.outputs.upload_url }}
353-
asset_path: assets/firefly-desktop-${{ env.VERSION }}.AppImage
354-
asset_name: firefly-desktop-${{ env.VERSION }}.AppImage
353+
asset_path: assets/iota-legacy-migration-tool-desktop-${{ env.VERSION }}.AppImage
354+
asset_name: iota-legacy-migration-tool-desktop-${{ env.VERSION }}.AppImage
355355
asset_content_type: application/octet-stream
356356

357357
- name: Upload Linux code signature asset
@@ -360,27 +360,6 @@ jobs:
360360
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
361361
with:
362362
upload_url: ${{ steps.create_release.outputs.upload_url }}
363-
asset_path: assets/firefly-desktop-${{ env.VERSION }}.AppImage.asc
364-
asset_name: firefly-desktop-${{ env.VERSION }}.AppImage.asc
363+
asset_path: assets/iota-legacy-migration-tool-desktop-${{ env.VERSION }}.AppImage.asc
364+
asset_name: iota-legacy-migration-tool-desktop-${{ env.VERSION }}.AppImage.asc
365365
asset_content_type: application/pgp-signature
366-
367-
- name: Listing artifacts
368-
run: ls -al assets
369-
370-
- name: Upload to S3
371-
if: env.STAGE == 'prod'
372-
run: |
373-
aws s3 cp assets/ s3://iotaledger-files/4a1ddea1-10c1-4f1d-83f0-e14903931a46/releases/ --recursive --include "*" --exclude "*.sha256" --exclude "*.blockmap" --exclude "*.asc" --acl public-read
374-
aws s3 cp assets/ s3://iotaledger-files/firefly/releases/ --recursive --include "*" --exclude "*.sha256" --exclude "*.blockmap" --exclude "*.asc" --acl public-read
375-
env:
376-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
377-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
378-
AWS_DEFAULT_REGION: eu-central-1
379-
380-
- name: Invalidate CloudFront cache for auto-update files
381-
if: env.STAGE == 'prod'
382-
run: aws cloudfront create-invalidation --distribution-id E32G4HRED4PO65 --paths "/latest*"
383-
env:
384-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
385-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
386-
AWS_DEFAULT_REGION: eu-central-1

packages/desktop/electron-builder-config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const merge = require('lodash.merge')
33

44
const baseConfig = () => ({
55
productName: 'IOTA Legacy Migration Tool',
6-
artifactName: 'iota-legacy-migration-tool-${version}.${ext}',
6+
artifactName: 'iota-legacy-migration-tool-desktop-${version}.${ext}',
77
copyright: 'IOTA Foundation',
88
directories: { buildResources: './public', output: './out' },
99
files: ['public/', 'package.json', '!node_modules/firefly-actor-system-nodejs-bindings/native/*'],
@@ -56,11 +56,6 @@ const baseConfig = () => ({
5656
gatekeeperAssess: false,
5757
asarUnpack: ['**/*.node'],
5858
},
59-
publish: {
60-
provider: 'generic',
61-
url: 'https://dl.firefly.iota.org/',
62-
channel: 'latest',
63-
},
6459
})
6560

6661
const getIconPaths = (stage) => {

packages/desktop/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "desktop",
33
"productName": "IOTA Legacy Migration Tool",
4-
"version": "1.7.5",
5-
"description": "Official IOTA wallet on desktop",
4+
"version": "0.0.1",
5+
"description": "Official IOTA Legacy Migration Tool on desktop",
66
"main": "public/build/main.js",
77
"repository": "[email protected]:iotaledger/legacy-migration-tool.git",
88
"author": "IOTA Foundation <[email protected]>",
@@ -17,15 +17,15 @@
1717
"build:alpha": "cross-env NODE_ENV=production PLATFORM=desktop STAGE=alpha webpack",
1818
"build:beta": "cross-env NODE_ENV=production PLATFORM=desktop STAGE=beta webpack",
1919
"build:prod": "cross-env NODE_ENV=production PLATFORM=desktop STAGE=prod webpack",
20-
"compile:alpha:linux": "cross-env STAGE=alpha electron-builder --linux --x64 --config electron-builder-config.js",
21-
"compile:alpha:mac": "cross-env STAGE=alpha electron-builder --mac --x64 --config electron-builder-config.js",
22-
"compile:alpha:win": "cross-env STAGE=alpha electron-builder --win --x64 --config electron-builder-config.js",
23-
"compile:beta:linux": "cross-env STAGE=beta electron-builder --linux --x64 --config electron-builder-config.js",
24-
"compile:beta:mac": "cross-env STAGE=beta electron-builder --mac --x64 --config electron-builder-config.js",
25-
"compile:beta:win": "cross-env STAGE=beta electron-builder --win --x64 --config electron-builder-config.js",
26-
"compile:prod:linux": "cross-env STAGE=prod electron-builder --linux --x64 --config electron-builder-config.js",
27-
"compile:prod:mac": "cross-env STAGE=prod electron-builder --mac --x64 --config electron-builder-config.js",
28-
"compile:prod:win": "cross-env STAGE=prod electron-builder --win --x64 --config electron-builder-config.js"
20+
"compile:alpha:linux": "cross-env STAGE=alpha electron-builder --publish never --linux --x64 --config electron-builder-config.js",
21+
"compile:alpha:mac": "cross-env STAGE=alpha electron-builder --publish never --mac --x64 --config electron-builder-config.js",
22+
"compile:alpha:win": "cross-env STAGE=alpha electron-builder --publish never --win --x64 --config electron-builder-config.js",
23+
"compile:beta:linux": "cross-env STAGE=beta electron-builder --publish never --linux --x64 --config electron-builder-config.js",
24+
"compile:beta:mac": "cross-env STAGE=beta electron-builder --publish never --mac --x64 --config electron-builder-config.js",
25+
"compile:beta:win": "cross-env STAGE=beta electron-builder --publish never --win --x64 --config electron-builder-config.js",
26+
"compile:prod:linux": "cross-env STAGE=prod electron-builder --publish never --linux --x64 --config electron-builder-config.js",
27+
"compile:prod:mac": "cross-env STAGE=prod electron-builder --publish never --mac --x64 --config electron-builder-config.js",
28+
"compile:prod:win": "cross-env STAGE=prod electron-builder --publish never --win --x64 --config electron-builder-config.js"
2929
},
3030
"dependencies": {
3131
"@ledgerhq/hw-transport-node-hid": "^5.13.0",

packages/desktop/scripts/notarize.macos.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,17 @@ module.exports = async (appBundleId, appName) => {
1111
return true
1212
}
1313

14-
const APPLE_ID = process.env.FIREFLY_APPLE_ID
15-
const APPLE_ID_PASSWORD = process.env.FIREFLY_APPLE_ID_PASSWORD
14+
const APPLE_ID = process.env.LEGACY_MIGRATION_TOOL_APPLE_ID
15+
const APPLE_ID_PASSWORD = process.env.LEGACY_MIGRATION_TOOL_APPLE_ID_PASSWORD
1616

1717
if (!APPLE_ID) {
18-
throw Error('Notarization failed: Environment variable "FIREFLY_APPLE_ID" is not defined')
18+
throw Error('Notarization failed: Environment variable "LEGACY_MIGRATION_TOOL_APPLE_ID" is not defined')
1919
}
2020

2121
if (!APPLE_ID_PASSWORD) {
22-
throw Error('Notarization failed: Environment variable "FIREFLY_APPLE_ID_PASSWORD" is not defined')
22+
throw Error(
23+
'Notarization failed: Environment variable "LEGACY_MIGRATION_TOOL_APPLE_ID_PASSWORD" is not defined'
24+
)
2325
}
2426

2527
await notarize({

packages/desktop/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const appName =
2020
stage === 'prod'
2121
? 'IOTA Legacy Migration Tool'
2222
: `IOTA Legacy Migration Tool ${stage.replace(/^\w/, (c) => c.toUpperCase())}`
23-
const appId = stage === 'prod' ? 'org.iota.firefly' : `org.iota.firefly.${stage}`
23+
const appId = stage === 'prod' ? 'org.iota.legacy-migration-tool' : `org.iota.legacy-migration-tool.${stage}`
2424

2525
// / ------------------------ Resolve ------------------------
2626

0 commit comments

Comments
 (0)