flat assembler
Message board for the users of flat assembler.
Index
> Windows > How can I get VS to sign my fasm code? Goto page 1, 2 Next |
Author |
|
revolution 08 Jun 2024, 08:31
Do you want to create compatible source code that VS can use, i.e. convert fasm assembly source to MASM assembly source?
If so you can use PREPSRC.ASM (in the TOOLS folder) to get the raw source after preprocessing. Then all the macros are expanded.. Then use sed, or something similar, to massage the output into MASM syntax. |
|||
08 Jun 2024, 08:31 |
|
Overclick 08 Jun 2024, 12:03
How to order PREPSRC.ASM?
|
|||
08 Jun 2024, 12:03 |
|
Overclick 08 Jun 2024, 16:15
PREPSRC.EXE Source.asm Result.inc
error: input file is not a recognized assembly information format. |
|||
08 Jun 2024, 16:15 |
|
revolution 08 Jun 2024, 16:22
I think you need to pass the .fas file.
|
|||
08 Jun 2024, 16:22 |
|
bitRAKE 08 Jun 2024, 16:31
Overclick wrote: I'm looking for best solution to migrate FASM projects to VisualStudio. _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
08 Jun 2024, 16:31 |
|
revolution 08 Jun 2024, 16:42
Perhaps awk is a better choice than sed.
But nevertheless, if VS doesn't support assembly then the whole plan is useless. |
|||
08 Jun 2024, 16:42 |
|
Overclick 08 Jun 2024, 16:54
I did, converted to .inc but what to do next? A lot of if-else-end if , virtual etc
What exactly I have to convert or replace on it?
|
||||||||||
08 Jun 2024, 16:54 |
|
Overclick 08 Jun 2024, 16:57
bitRAKE wrote:
|
||||||||||
08 Jun 2024, 16:57 |
|
revolution 08 Jun 2024, 17:02
Overclick wrote: What exactly I have to convert or replace on it? But virtual probably isn't a MASM thing. |
|||
08 Jun 2024, 17:02 |
|
Overclick 08 Jun 2024, 17:05
revolution wrote:
sounds like dead end |
|||
08 Jun 2024, 17:05 |
|
bitRAKE 08 Jun 2024, 18:36
ASSUME is the closest MASM gets to VIRTUAL.
If a custom build script is what passes for "support" then just write a VS build script for fasm. Look in something like ... C:\Program Files (x86)\Microsoft Visual Studio\2022\[Edition]\Common7\IDE\ItemTemplates\ ... *.vstemplate _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
08 Jun 2024, 18:36 |
|
Overclick 08 Jun 2024, 19:07
Quote:
The code is not from template, I found example in web and copy-pasted to check. It is built-in support in just virgin VS installed yesterday. That "customization" provided by MS itself with debug, steps, safe exceptions and etc features. If it that easy for FASM as you say then show me example.
|
||||||||||
08 Jun 2024, 19:07 |
|
bitRAKE 08 Jun 2024, 19:48
Debugger integration would require FAS -> PDB tool. The other things are possible with creation of XML property page.
_________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
||||||||||
08 Jun 2024, 19:48 |
|
Overclick 09 Jun 2024, 06:23
I found instruction for setup MASM there:
https://programminghaven.home.blog/2020/02/16/setup-an-assembly-project-on-visual-studio-2019/ bitRAKE, I really hope you (or someone, or Tomasz hisself) help to do something similar for FASM |
|||
09 Jun 2024, 06:23 |
|
bitRAKE 09 Jun 2024, 19:36
VS is an enterprise class tool with the slowness to match. The only benefit I see would be to integrate fasmg in the most general fashion to support learning and very complex build scenarios. This would require demultiplexing to desired targets. Certainly non-trivial - I'll need to give it more thought.
|
|||
09 Jun 2024, 19:36 |
|
Overclick 09 Jun 2024, 20:04
Any other idea to sign/validate my fasm-projects to let it be allowed for Microsoft Store? Seems I need to try do it in masm from scratch
|
|||
09 Jun 2024, 20:04 |
|
bitRAKE 09 Jun 2024, 23:17
Code: @echo off setlocal :: Usage if "%~1"=="" ( echo Usage: sign.cmd [debug^|release] path_to_binary exit /b 1 ) set MODE=%~1 set FILEPATH=%~2 :: Path to signtool.exe, adjust as necessary set SIGNTOOL="C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\signtool.exe" :: Check if signtool exists if not exist %SIGNTOOL% ( echo signtool.exe not found. exit /b 1 ) :: Proceed based on mode if /I "%MODE%"=="debug" ( echo Debug mode: Signing with self-signed certificate... :: Ensure you have created a self-signed certificate named MySelfSignedCert.pfx %SIGNTOOL% sign /f MySelfSignedCert.pfx /p password /fd SHA256 /td SHA256 /tr http://timestamp.digicert.com /v %FILEPATH% ) else if /I "%MODE%"=="release" ( echo Release mode: Signing with CA certificate... :: Assuming you have a CA certificate named MyCACert.pfx %SIGNTOOL% sign /f MyCACert.pfx /p password /fd SHA256 /td SHA256 /tr http://timestamp.digicert.com /v %FILEPATH% ) else ( echo Invalid mode. Use 'debug' or 'release'. exit /b 1 ) echo Signing completed. endlocal For testing you can create a self-signed cert with: Code: makecert -n "CN=MyTestCertificate" -r -sv MyTestCertificate.pvk MyTestCertificate.cer pvk2pfx -pvk MyTestCertificate.pvk -spc MyTestCertificate.cer -pfx MyTestCertificate.pfx -po YourPFXPassword _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
09 Jun 2024, 23:17 |
|
Overclick 10 Jun 2024, 10:49
Microsoft Store seems to certificate itself, but Verification process need to be passed. Question: How to pass Verification process? To check it works I need to pass it localy first, but it crashes my app without results. Requirenments says I need VS, that means I need compile in VS right?
|
|||
10 Jun 2024, 10:49 |
|
bitRAKE 10 Jun 2024, 13:06
Overclick wrote: Requirenments says I need VS _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
10 Jun 2024, 13:06 |
|
Goto page 1, 2 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.