Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/YBTopaz8/Dimmer-MAUI
Browse files Browse the repository at this point in the history
  • Loading branch information
YBTopaz8 committed Jan 1, 2025
2 parents e627b3f + e979430 commit 5e244d7
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 162 deletions.
142 changes: 0 additions & 142 deletions .github/workflows/dotnet-desktop.yml

This file was deleted.

24 changes: 11 additions & 13 deletions .github/workflows/release-dimmer.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
name: Build and Release Dimmer

on:
release:
types: [published]
pull_request:
branches:
- main
on: push

jobs:
build-windows:
build-windows:
name: Build and Package Windows Installer
runs-on: windows-latest

Expand All @@ -27,15 +22,17 @@ jobs:
--self-contained=false -p:WindowsPackageType=None \
-o ./windows-output

- name: Install Inno Setup
uses: jrsoftware/issrc-action@v1
with:
inno-setup-version: latest # or specify a version
- name: Download and Install Inno Setup
run: |
$innoSetupUrl = "https://files.jrsoftware.org/is/6/innosetup-6.3.3.exe" # Update if newer version
$installerPath = "innosetup.exe"
Invoke-WebRequest -Uri $innoSetupUrl -OutFile $installerPath
Start-Process -Wait -FilePath $installerPath -ArgumentList "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART"
- name: Package with Inno Setup
run: |
# Pass the Windows output directory as a define and explicitly set the output directory
ISCC.exe /dMySourceDir=./windows-output /o./Output ./releasePackaging/setup_dimmer.iss
ISCC.exe /dMySourceDir=./windows-output /o./Output ./releasePacking/setup_dimmer.iss
- name: Verify Installer Exists
run: |
Expand All @@ -46,6 +43,7 @@ jobs:
echo "Installer file found: ./Output/Setup_Dimmer.exe"
fi
- name: Upload Windows Installer Artifact
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -139,4 +137,4 @@ jobs:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./release-assets/android/Dimmer-Aligned.apk
# asset_name: Dimmer.apk
# asset_content_type: application/vnd.android.package-archive
# asset_content_type: application/vnd.android.package-archive
2 changes: 1 addition & 1 deletion Dimmer/Platforms/Windows/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="uap rescap">

<Identity Name="maui-package-name-placeholder" Publisher="CN=YvanBrunel" Version="0.7.0.0" />
<Identity Name="maui-package-name-placeholder" Publisher="CN=YvanBrunel" Version="0.9.0.0" />

<mp:PhoneIdentity PhoneProductId="8EA403B0-ABFE-4371-8CD3-4C4A71E7FD9B" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

Expand Down
5 changes: 1 addition & 4 deletions Dimmer/ViewModels/PlaylistSection.HomePageVM.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@



namespace Dimmer_MAUI.ViewModels;
namespace Dimmer_MAUI.ViewModels;
public partial class HomePageVM
{
[ObservableProperty]
Expand Down
4 changes: 2 additions & 2 deletions Dimmer/ViewModels/StatsSection.HomePageVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void ShowTopTenSongsForSpecificDay(DateTimeOffset? selectedDay)
// .Count(d => d.DatePlayed.Date == selectedDay.Value.Date && d.WasPlayCompleted == true)
})
.OrderByDescending(s => s.PlayCount)
.Take(10)
.Take(15)
.ToObservableCollection();


Expand All @@ -70,7 +70,7 @@ void ShowTopTenSongsForSpecificDay(DateTimeOffset? selectedDay)
};

[ObservableProperty]
SingleSongStatistics songPickedForStats;
public partial SingleSongStatistics SongPickedForStats { get; set; }
[ObservableProperty]
int numberOfTimesPlayed;
[ObservableProperty]
Expand Down

0 comments on commit 5e244d7

Please sign in to comment.