Skip to content

bug: Fix undefined Inno AppVersion#462

Merged
PartyDonut merged 1 commit intoDonutWare:developfrom
schembriaiden:fix-inno-app-version-2
Aug 17, 2025
Merged

bug: Fix undefined Inno AppVersion#462
PartyDonut merged 1 commit intoDonutWare:developfrom
schembriaiden:fix-inno-app-version-2

Conversation

@schembriaiden
Copy link
Copy Markdown
Contributor

@schembriaiden schembriaiden commented Aug 16, 2025

Pull Request Description

It seems to be that there is an issue where the FLADDER_VERSION environment variable is not defined so the inno installer defaults to latest everytime. This causes several issues such as:

  • Inno installer just saying latest
  • App Version in Settings/Control Panel saying latest
  • Issues with creating new Winget manifests

This PR should fix this issue by overwriting the inno installer file with the latest version.

Issue Being Fixed

Inno installer version not being defined correctly.

Screenshots / Recordings

Before:

image image

After:

image image

Checklist

  • If a new package was added, did you ensure it works for all supported platforms? Is the package well maintained
  • Check that any changes are related to the issue at hand.

@sourcery-ai
Copy link
Copy Markdown
Contributor

sourcery-ai bot commented Aug 16, 2025

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Ensure the Inno installer always uses the correct application version by defining a default FLADDER_VERSION in the setup script and updating the CI workflow to pass the actual version as a compiler define.

Class diagram for updated windows_setup.iss version handling

classDiagram
    class Setup {
        +AppId
        +AppName
        +AppVersion
        +AppPublisher
        +AppPublisherURL
        +AppSupportURL
    }
    class FLADDER_VERSION {
        <<define>>
        value: string
    }
    FLADDER_VERSION <|-- Setup: uses
Loading

File-Level Changes

Change Details Files
Add default FLADDER_VERSION in Inno Setup script
  • Insert #ifndef guard to define FLADDER_VERSION as "latest" when undefined
  • Switch AppVersion directive to reference the FLADDER_VERSION macro
windows/windows_setup.iss
Modify GitHub Actions workflow to pass FLADDER_VERSION via compiler flag
  • Remove standalone FLADDER_VERSION env variable setup
  • Add /DFLADDER_VERSION="${{ needs.fetch-info.outputs.version_name }}" to Inno-Setup-Action options
.github/workflows/build.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey there - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@schembriaiden schembriaiden changed the title Bug: Fix Undefined Inno App Version bug: Fix Undefined Inno App Version Aug 17, 2025
@schembriaiden schembriaiden changed the title bug: Fix Undefined Inno App Version bug: Fix undefined Inno AppVersion Aug 17, 2025
Copy link
Copy Markdown
Collaborator

@PartyDonut PartyDonut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me thanks for fixing this.

@PartyDonut PartyDonut added the bug Something isn't working label Aug 17, 2025
@PartyDonut PartyDonut merged commit bf18ace into DonutWare:develop Aug 17, 2025
12 of 13 checks passed
@github-project-automation github-project-automation bot moved this to Done in Fladder Aug 17, 2025
@schembriaiden schembriaiden deleted the fix-inno-app-version-2 branch August 17, 2025 14:56
Julien9969 pushed a commit to Julien9969/Fladder that referenced this pull request Sep 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants