Compare commits
9 commits
Author | SHA1 | Date | |
---|---|---|---|
ff39390505 | |||
e849d5ed43 | |||
e7fbfd9d8d | |||
52937f3839 | |||
3a131d93ed | |||
6bcd3da29f | |||
18878e34dd | |||
2156aff43c | |||
7717e63d04 |
5 changed files with 45 additions and 13 deletions
|
@ -42,8 +42,20 @@ jobs:
|
||||||
--self-contained true \
|
--self-contained true \
|
||||||
-p:PublishSingleFile=true \
|
-p:PublishSingleFile=true \
|
||||||
-p:PublishTrimmed=true \
|
-p:PublishTrimmed=true \
|
||||||
-o ./output_linux
|
-o ./output_linux_x64
|
||||||
|
|
||||||
|
- name: Build the project (Linux arm64)
|
||||||
|
run: |
|
||||||
|
dotnet publish ./Cryptura/Cryptura.csproj \
|
||||||
|
-c Release \
|
||||||
|
-r linux-arm64 \
|
||||||
|
--self-contained true \
|
||||||
|
-p:PublishSingleFile=true \
|
||||||
|
-p:PublishTrimmed=true \
|
||||||
|
-o ./output_linux_arm64
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: Build the project (Windows x64)
|
- name: Build the project (Windows x64)
|
||||||
run: |
|
run: |
|
||||||
dotnet publish ./Cryptura/Cryptura.csproj \
|
dotnet publish ./Cryptura/Cryptura.csproj \
|
||||||
|
@ -52,7 +64,18 @@ jobs:
|
||||||
--self-contained true \
|
--self-contained true \
|
||||||
-p:PublishSingleFile=true \
|
-p:PublishSingleFile=true \
|
||||||
-p:PublishTrimmed=true \
|
-p:PublishTrimmed=true \
|
||||||
-o ./output_win
|
-o ./output_win_x64
|
||||||
|
|
||||||
|
- name: Build the project (Windows arm64)
|
||||||
|
run: |
|
||||||
|
dotnet publish ./Cryptura/Cryptura.csproj \
|
||||||
|
-c Release \
|
||||||
|
-r win-arm64 \
|
||||||
|
--self-contained true \
|
||||||
|
-p:PublishSingleFile=true \
|
||||||
|
-p:PublishTrimmed=true \
|
||||||
|
-o ./output_win_arm64
|
||||||
|
|
||||||
|
|
||||||
- name: Download appimagetool
|
- name: Download appimagetool
|
||||||
run: |
|
run: |
|
||||||
|
@ -62,7 +85,7 @@ jobs:
|
||||||
- name: Build AppImage
|
- name: Build AppImage
|
||||||
run: |
|
run: |
|
||||||
mkdir -p Cryptura.AppDir/usr/bin
|
mkdir -p Cryptura.AppDir/usr/bin
|
||||||
cp -r ./output_linux/* Cryptura.AppDir/usr/bin/
|
cp -r ./output_linux_x64/* Cryptura.AppDir/usr/bin/
|
||||||
|
|
||||||
cp Cryptura/Assets/AppRun Cryptura.AppDir/
|
cp Cryptura/Assets/AppRun Cryptura.AppDir/
|
||||||
cp Cryptura/Assets/cryptura.desktop Cryptura.AppDir/
|
cp Cryptura/Assets/cryptura.desktop Cryptura.AppDir/
|
||||||
|
@ -79,9 +102,11 @@ jobs:
|
||||||
- name: Pack Releases into Zips
|
- name: Pack Releases into Zips
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ./release
|
mkdir -p ./release
|
||||||
zip -r ./release/Cryptura_Linux_x64.zip ./output_linux
|
zip -r ./release/Cryptura_Linux_x64.zip ./output_linux_x64
|
||||||
zip -r ./release/Cryptura_Windows_x64.zip ./output_win
|
zip -r ./release/Cryptura_Linux_arm64.zip ./output_linux_arm64
|
||||||
rm -rf ./output_linux ./output_win
|
zip -r ./release/Cryptura_Windows_x64.zip ./output_win_x64
|
||||||
|
zip -r ./release/Cryptura_Windows_arm64.zip ./output_win_arm64
|
||||||
|
rm -rf ./output_linux_x64 ./output_linux_arm64 ./output_win_x64 ./output_win_arm64
|
||||||
|
|
||||||
|
|
||||||
- name: Create Git tag
|
- name: Create Git tag
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||||
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
|
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
|
||||||
<AssemblyVersion>1.0</AssemblyVersion>
|
<AssemblyVersion>1.0</AssemblyVersion>
|
||||||
<FileVersion>1.4</FileVersion>
|
<FileVersion>2.0</FileVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
</ExperimentalAcrylicBorder>
|
</ExperimentalAcrylicBorder>
|
||||||
|
|
||||||
<Grid>
|
<Grid>
|
||||||
<Border Width="1" Background="#80000000" Margin="5,10" HorizontalAlignment="Center" ZIndex="1"/>
|
<Border Width="1" Background="#80000000" Margin="5,20" HorizontalAlignment="Center" ZIndex="1" Name="MiddleSeperator" IsVisible="False"/>
|
||||||
<Border Background="#80000000" CornerRadius="10" Margin="10" Name="ContentBorder">
|
<Border Background="#80000000" CornerRadius="10" Margin="10" Name="ContentBorder">
|
||||||
<ListBox Name="PasswordList" Background="Transparent" SelectionChanged="PasswordList_OnSelectionChanged"
|
<ListBox Name="PasswordList" Background="Transparent" SelectionChanged="PasswordList_OnSelectionChanged"
|
||||||
Margin="10">
|
Margin="10">
|
||||||
|
@ -46,12 +46,16 @@
|
||||||
Foreground="White"
|
Foreground="White"
|
||||||
Text="{Binding Name}"
|
Text="{Binding Name}"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
|
TextTrimming="CharacterEllipsis"
|
||||||
|
TextWrapping="NoWrap"
|
||||||
Margin="20,0"/>
|
Margin="20,0"/>
|
||||||
<TextBlock
|
<TextBlock
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Foreground="White"
|
Foreground="White"
|
||||||
Text="{Binding DisplayValue}"
|
Text="{Binding DisplayValue}"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
|
TextTrimming="CharacterEllipsis"
|
||||||
|
TextWrapping="NoWrap"
|
||||||
Margin="20,0"/>
|
Margin="20,0"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
|
@ -78,7 +82,8 @@
|
||||||
</ListBox>
|
</ListBox>
|
||||||
</Border>
|
</Border>
|
||||||
<Border Background="#80000000" Name="AddPasswordContainer" IsVisible="False" PointerPressed="OuterBorder_OnPointerPressed" ZIndex="11">
|
<Border Background="#80000000" Name="AddPasswordContainer" IsVisible="False" PointerPressed="OuterBorder_OnPointerPressed" ZIndex="11">
|
||||||
<Border Background="#2b2f36" CornerRadius="10" PointerPressed="InnerBorder_OnPointerPressed"
|
<Border Background="#80000000" CornerRadius="10" PointerPressed="InnerBorder_OnPointerPressed"
|
||||||
|
Name="AddPasswordBorder"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Height="300"
|
Height="300"
|
||||||
|
|
|
@ -20,13 +20,15 @@ public partial class MainWindow : Window
|
||||||
this.TransparencyLevelHint = new[] { WindowTransparencyLevel.None };
|
this.TransparencyLevelHint = new[] { WindowTransparencyLevel.None };
|
||||||
this.Background = new SolidColorBrush(Color.Parse(ColorScheme.Surface.Color_1));
|
this.Background = new SolidColorBrush(Color.Parse(ColorScheme.Surface.Color_1));
|
||||||
this.ContentBorder.Background = new SolidColorBrush(Color.Parse(ColorScheme.Surface.Color_2));
|
this.ContentBorder.Background = new SolidColorBrush(Color.Parse(ColorScheme.Surface.Color_2));
|
||||||
AcrylicBorderObject.IsVisible = false;
|
this.AddPasswordBorder.Background = new SolidColorBrush(Color.Parse(ColorScheme.Surface.Color_2));
|
||||||
|
this.MiddleSeperator.IsVisible = true;
|
||||||
|
this.AcrylicBorderObject.IsVisible = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.TransparencyLevelHint = new[] { WindowTransparencyLevel.AcrylicBlur };
|
this.TransparencyLevelHint = new[] { WindowTransparencyLevel.AcrylicBlur };
|
||||||
this.Background = Brushes.Transparent;
|
this.Background = Brushes.Transparent;
|
||||||
AcrylicBorderObject.IsVisible = true;
|
this.AcrylicBorderObject.IsVisible = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public MainWindow(string masterPassword)
|
public MainWindow(string masterPassword)
|
||||||
|
|
|
@ -9,7 +9,7 @@ public class Password
|
||||||
{
|
{
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
public string Value { get; set; }
|
public string Value { get; set; }
|
||||||
public string CensoredValue { get; set; } = "******";
|
public string CensoredValue { get; set; } = "**********";
|
||||||
public WXFile WxFile { get; set; }
|
public WXFile WxFile { get; set; }
|
||||||
|
|
||||||
public string DisplayValue
|
public string DisplayValue
|
||||||
|
|
Loading…
Add table
Reference in a new issue