Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
5 changes: 3 additions & 2 deletions src/lib/tachyon/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const { platformForId, PLATFORMS } = require('../platform');
const { supportedCountries } = require('../supported-countries');
const DownloadManager = require('../download-manager');
const FlashCommand = require('../../cmd/flash');
const { titleCase } = require('../utilities');


/**
Expand Down Expand Up @@ -102,7 +103,7 @@ async function printOSInfo({ workflow, variant, buildVersion, version, region, u
const { distribution, distributionVersion } = workflow.osInfo;
ui.write(os.EOL);
ui.write(ui.chalk.bold('Operating system information:'));
ui.write(ui.chalk.bold(`Tachyon ${distribution.toUpperCase()} ${distributionVersion} (${variant}, ${region} region)`));
ui.write(ui.chalk.bold(`Tachyon ${titleCase(distribution)} ${distributionVersion} (${variant}, ${region} region)`));
ui.write(`${ui.chalk.bold('Version:')} ${buildVersion || version }`);
}

Expand Down Expand Up @@ -467,7 +468,7 @@ function getFlashMessage({ device, productSlug, workflow }){
async function setupCompletedStep({ ui, variant, flashSuccessful, productSlug, deviceInfo, workflow }, stepIndex) {
if (flashSuccessful) {
const messageContent = workflow.variants.find(v => v.value === variant)?.setupCompletedMessage;
const footer = `For more information about Tachyon, visit our developer site at: https://developer.particle.io!${os.EOL}` +
const footer = `Learn more about Tachyon at our developer site: https://developer.particle.io/tachyon${os.EOL}` +
`${os.EOL}` +
`View your device on the Particle Console at: ${consoleLink({
productSlug,
Expand Down
20 changes: 12 additions & 8 deletions src/lib/tachyon/workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,11 @@ const ubuntu20 = Object.freeze({

/** @type {Workflow} */
const ubuntu24 = Object.freeze({
name: 'Ubuntu 24.04 (alpha)',
name: 'Ubuntu 24.04 (beta)',
value: 'ubuntu24',
selectionWarning: 'Heads-up: Development of Ubuntu 24.04 (alpha) is still in progress. Some features may be ' +
`unstable or missing. ${os.EOL}`,
selectionWarning: 'Heads-up: Development of Ubuntu 24.04 (beta) is still in progress. Some features may be ' +
`unstable or missing.${os.EOL}` +
`See https://developer.particle.io/tachyon/software/ubuntu_24_04/overview for more information.${os.EOL}`,
osInfo: {
distribution: 'ubuntu',
distributionVersion: '24.04',
Expand All @@ -127,7 +128,7 @@ const ubuntu24 = Object.freeze({
{
name: 'Desktop (GUI)',
value: 'desktop',
setupCompletedMessage: 'All done! Your Tachyon device is ready to boot to the desktop' +
setupCompletedMessage: 'All done! Your Tachyon device is ready to boot to the desktop ' +
`and will automatically connect to Wi-Fi.${os.EOL}${os.EOL}` +
`To continue:${os.EOL}` +
` - Disconnect the USB-C cable${os.EOL}` +
Expand All @@ -136,7 +137,8 @@ const ubuntu24 = Object.freeze({
` - Power on the device by pressing the power button.${os.EOL}${os.EOL}` +
`When the device boots it will:${os.EOL}` +
` - Connect to the Particle Cloud.${os.EOL}`+
` - Run all system services, including the desktop if an HDMI monitor is connected.${os.EOL}${os.EOL}`
` - Run all system services, including the desktop if an HDMI monitor is connected.${os.EOL}${os.EOL}` +
`For more information about what's currently supported on Ubuntu 24.04, visit https://developer.particle.io/tachyon/software/ubuntu_24_04/overview${os.EOL}${os.EOL}`
},
],
steps: Object.freeze([
Expand Down Expand Up @@ -176,13 +178,15 @@ const android14 = Object.freeze({
` - Power off the device by holding the power button for 3 seconds and releasing.${os.EOL}` +
` - Power on the device by pressing the power button.${os.EOL}${os.EOL}` +
`After the device boots Android, you can:${os.EOL}` +
` - Connect to Wi-Fi and cellular through the Settings app${os.EOL}` +
` - Install additional apps through adb.${os.EOL}`
` - Connect to Wi-Fi and cellular through the Settings app.${os.EOL}` +
` - Install additional apps through adb.${os.EOL}` +
`For more information about what's currently supported on Android 14, visit https://developer.particle.io/tachyon/software/android_14/android-14-overview${os.EOL}${os.EOL}`
},
],
customFlashMessage: `Okay—last step! We're now flashing the device with the operating system${os.EOL}`,
selectionWarning: `Heads-up: this setup won’t provision the eSIM or connect to the Particle Cloud.${os.EOL}` +
`If you need to provision the SIM, set up Ubuntu 20.04 first. ${os.EOL}`,
`If you need to provision the SIM, set up Ubuntu 20.04 first.${os.EOL}` +
`See https://developer.particle.io/tachyon/software/android_14/android-14-overview for more information.${os.EOL}`,
steps: Object.freeze([
steps.pickVariant,
steps.configureProductStep,
Expand Down
7 changes: 7 additions & 0 deletions src/lib/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,13 @@ module.exports = {
return slug;
},

titleCase(str) {
return str?.replace(
/\w\S*/g,
(txt) => txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase()
);
},

/**
* Returns the architecture of the current system
* @return {String} architecture of the current system
Expand Down